3 namespace Friendica\Core\Session;
6 * Contains all global supported Session methods
11 * Start the current session
13 * @return self The own Session instance
15 public function start();
18 * Checks if the key exists in this session
22 * @return boolean True, if it exists
24 public function exists(string $name);
27 * Retrieves a key from the session super global or the defaults if the key is missing or the value is falsy.
29 * Handle the case where session_start() hasn't been called and the super global isn't available.
32 * @param mixed $defaults
36 public function get(string $name, $defaults = null);
39 * Sets a single session variable.
40 * Overrides value of existing key.
45 public function set(string $name, $value);
48 * Sets multiple session variables.
49 * Overrides values for existing keys.
51 * @param array $values
53 public function setMultiple(array $values);
56 * Removes a session variable.
57 * Ignores missing keys.
61 public function remove(string $name);
64 * Clears the current session array
66 public function clear();