myMVC_HttpSessionClass to manage the sessions.
It supports normal session (managed from PHP) or database ones. Session-ID can be as URL-parameter or as Cookie. See mymvc.php for configuration items
Located in /myMVC/HttpSession.php (line 30)
Destructor __destruct (line 91)
Destructor.
Saves the data in the session or the database, depending on the value of $config['SESSION_TYPE'] (see mymvc.php)
delete (line 239)
Delete an object from current namespace
deleteFromNamespace (line 250)
Delete an object from the given namespace
destroy (line 173)
Destroy the current Session (for example due to a logout) and starts a new one.
emptyGivenNamespace (line 206)
Empty a given namespace
emptyNamespace (line 196)
Empty the current used namespace
exists (line 288)
Returns whether an object exists in the current namespace
existsInNamespace (line 300)
Returns whether an object exists in the given namespace
get (line 261)
Returns a previously saved object in the current namespace
getFromNamespace (line 275)
Returns a previously saved object in the given namespace
getSessionId (line 164)
Returns the current session ID
isExpired (line 154)
Returns if the current session is expired
set (line 217)
Save an object in the current namespace
setInNamespace (line 229)
Save an object in the given namespace
shutdown (line 107)
Called from PHP if the script terminates with exit()
startNewSession (line 135)
Starts a new session.
Lifetime in seconds and type (URL or Cookies) can be set in the configuration ($config['SESSION_LIFETIME'] and $config['SESSION_USECOOKIES']). Default are 8 hours for lifetime and URL for session
useNamespace (line 188)
Set the namespace to use
Documentation generated on Wed, 09 Mar 2016 21:27:02 +0100 by phpDocumentor 1.4.4