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
35 public function get(string $name, $defaults = null);
38 * Sets a single session variable.
39 * Overrides value of existing key.
44 public function set(string $name, $value);
47 * Sets multiple session variables.
48 * Overrides values for existing keys.
50 * @param array $values
52 public function setMultiple(array $values);
55 * Removes a session variable.
56 * Ignores missing keys.
60 public function remove(string $name);
63 * Clears the current session array
65 public function clear();
68 * Kills the "Friendica" cookie and all session data
70 public function delete();