3 namespace Friendica\Core\Session;
5 use Friendica\BaseObject;
10 * Start the current session
12 * @return self The own Session instance
14 public function start();
17 * Checks if the key exists in this session
21 * @return boolean True, if it exists
23 public function exists(string $name);
26 * Retrieves a key from the session super global or the defaults if the key is missing or the value is falsy.
28 * Handle the case where session_start() hasn't been called and the super global isn't available.
31 * @param mixed $defaults
34 public function get(string $name, $defaults = null);
37 * Sets a single session variable.
38 * Overrides value of existing key.
43 public function set(string $name, $value);
46 * Sets multiple session variables.
47 * Overrides values for existing keys.
49 * @param array $values
51 public function setMultiple(array $values);
54 * Removes a session variable.
55 * Ignores missing keys.
59 public function remove(string $name);
62 * Clears the current session array
64 public function clear();
67 * Kills the "Friendica" cookie and all session data
69 public function delete();