-
__construct() : voidSession constructor. Start the session.
-
start() : boolStart the session.
-
Check whether the session was started.
-
getId() : stringGet session id.
-
regenerate() : boolRegenerate session id.
-
destroy() : boolDestroy the session.
-
Check whether session has the key.
-
Retrieve a single key from the session.
-
Assigns a value to the specified session key.
-
Remove session key.
-
getData() : arrayFetch all data.
-
public function __construct()
Session constructor. Start the session. -
public function start()
Start the session. -
public function isStarted(bool $autoStart)
Check whether the session was started. -
public function getId()
Get session id. -
public function regenerate()
Regenerate session id. -
public function destroy()
Destroy the session. -
public function has(string $key)
Check whether session has the key.No support for passing variables by reference yet zephir/issues/203 -
public function get(string $key, variable $defaultValue, bool $required)
Retrieve a single key from the session. -
public function set(string $key, variable $value)
Assigns a value to the specified session key. -
public function remove(string $key)
Remove session key. -
public function getData()
Fetch all data.