Session handling class
This class wraps all calls concerning the current session. It also includes session configuration through the phpSATk configuration interface and a possiblity to write object oriented session handlers.
Located in /phpsatk-lib/global/org.eenterphace.sat.session/session.php (line 37)
Session handler
Whether a session has been initialized
Destroys the session
This will remove all data of the session
Checks wheter a variable exists in the session
Gets the current session's identifier
Initializes a session if not yet initialized.
Gets a session variable
Throws an exception if the variable is not present.
Gets a session variable (or an empty string)
In opposition to getVar() this call won't throw an exception but return $default (what is null by default) if the variable does not exist.
Gets multiple session variables matched by a filter
Initializes a session
If a session has been already initialized the call will return.
Uses the configuration variable "session.handler" to determine the session handler to use ('php' is the default and will use the session handler provided by php - file in most cases);
In case the php session handler is used the save path is set to './cache/session' which is automatically created if non-existant.
Also settings concerning session lifetime are made on the basis of "session.lifetime" (3 hours by default). The session name is set based on the configuration variable "session.name" ("SATKSESSION" by default).
Only cookie based session are supported.
Regenerates the session id
This should be done when the user switches his level of autorization.
Removes a single variable from the session
Throws an exception if the var does not exist.
Remove multiple vars by a wildcard.
Returns the number of removed variables.
Sets a session variable
Initiailizes a session if not yet initialized.
Documentation generated on Mon, 21 May 2007 10:35:19 +0200 by phpDocumentor 1.3.0RC5