Class for managing HTTP sessions
Provides access to session-state values as well as session-level settings and lifetime management methods. Based on the standard PHP session handling mechanism it provides more advanced features such as expire timeouts.
Located in /libraries/joomla/session/session.php (line 26)
JObject | --JSession
Maximum age of unused session in minutes
Force cookies to be SSL only Default false
Security policy.
List of checks that will be done.
Default values:
Internal state.
One of 'active'|'expired'|'destroyed'|'error'
The session store object.
Inherited from JObject
JObject::$_errors
Checks for a form token in the request.
Use in conjunction with JHtml::_('form.token') or JSession::getFormToken.
Method to determine a hash for anti-spoofing variable names
Returns the global Session object, only creating it if it doesn't already exist.
Get the session handlers
Constructor
Session object destructor
Unset data from the session store
Writes session data and ends session
Session data is usually stored after your script terminated without the need to call JSession::close(), but as session data is locked to prevent concurrent writes only one script may operate on a session at any time. When using framesets together with sessions you will experience the frames loading one by one due to this locking. You can reduce the time needed to load all the frames by ending the session as soon as all changes to session variables are done.
Frees all session variables and destroys all data registered to a session
This method resets the $_SESSION variable and destroys all of the data associated with the current session in its storage (file or DB). It forces new session to be started after this method is called. It does not unset the session cookie.
Create a new session and copy variables from the old one
Get data from the session store
Get expiration time in minutes
Get session id
Get session name
Get current state of session
Get a session token, if a token isn't set yet one will be generated.
Tokens are used to secure forms from spamming attacks. Once a token has been generated the system will check the post request to see if it is present, if not it will invalidate the session.
Check whether data exists in the session store
Method to determine if a token exists in the session. If not the session will be set to expired
Check whether this session is currently created
Restart an expired or locked session.
Set data into the session store.
Create a session id
Create a token-string
Set session cookie parameters
Set counter of session usage
Set additional session options
Set the session timers
Start a session.
Creates a session (or resumes the current one based on the state of the session)
Do some checks for security reason
Inherited From JObject
JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()
Documentation generated on Mon, 25 Jun 2012 13:59:28 -0500 by phpDocumentor 1.4.4