1<?php
2
3use Facebook\PersistentData\PersistentDataInterface;
4
5class MyDokuWikiPersistentDataHandler implements PersistentDataInterface
6{
7  /**
8   * @var string Prefix to use for session variables.
9   */
10  protected $sessionPrefix = 'FBRLH_';
11
12  /**
13   * @inheritdoc
14   */
15  public function get($key)
16  {
17    return $_SESSION[DOKU_COOKIE][$this->sessionPrefix . $key];
18  }
19
20  /**
21   * @inheritdoc
22   */
23  public function set($key, $value)
24  {
25    $_SESSION[DOKU_COOKIE][$this->sessionPrefix . $key] = $value;
26  }
27}
28