4 namespace Friendica\Core\Session;
7 * Contains the base methods for $_SESSION interaction
14 public function start()
22 public function exists(string $name)
24 return isset($_SESSION[$name]);
30 public function get(string $name, $defaults = null)
32 return $_SESSION[$name] ?? $defaults;
38 public function set(string $name, $value)
40 $_SESSION[$name] = $value;
46 public function setMultiple(array $values)
48 $_SESSION = $values + $_SESSION;
54 public function remove(string $name)
56 unset($_SESSION[$name]);
62 public function clear()