webCOMAND

\io_comand_web\session

Provides methods for managing a PHP session.  A session object encapsulates getting an AJAX request and setting and updating a response object to send back to a client.  It also can send logged data.

Example

// prepare to load, get, set and save session information
$session = new \io_comand_web\session();

// load the session variables from the server
$session->load();

// get a loaded session variable
$user_id = $session->id;

// set a new session variable
$session->username = 'john';

// regenerate the session ID on server and browser
$session->regenerate_sessions_id();

// save all set session variables to the server
$session->save();