Todo List
[line 44]
[line 62]
[line 56]
[line 50]
Base_Session __construct( )
Creates new session object.
Example 1: Create new session object
bool clear( )
Removes all the data from the session.
bool close( )
Method to kill the session. Removes the session and all the data.
string getId( )
Returns the current session id.
string getName( )
Returns the session name.
bool isStarted( )
Method to see if there's an open session or not.
void open( )
If there's no open session, the method creates a new one.
bool regenerateId( )
Replaces the current session id with a new one and removes the old session data.
bool save( )
Saves the current session (e.g. for redirect).
string setId( string $id)
Method to set a new session id. Takes the new session id as first argument. Returns the session id.
string setName( string $name)
Method to set a new session name. Takes the new session name as first argument. Returns the session name.