public __isset (mixed $index) Alias: Check whether a session variable is set in an application context
public __get (mixed $index) Alias: Gets a session variable from an application context
public __destruct () ...
public status () Returns the status of the current session. var_dump($session->status()); if ($session->status() !== $session::SESSION_ACTIVE) { $session->start(); }
public start () Starts the session (if headers are already sent the session will not be started)
public setOptions (array $options) Sets session’s options $session->setOptions(['uniqueId' => 'my-private-app']);
public setName (mixed $name) Set session name
public setId (mixed $id) Set the current session id $session->setId($id);
public set (mixed $index, mixed $value) Sets a session variable in an application context $session->set('auth', 'yes');
integer SESSION_NONE
Page 37 of 382