JSessionClass for managing HTTP sessions
Provides access to session-state values as well as session-level settings and lifetime management methods. Based on the standart PHP session handling mechanism it provides for you more advanced features such as database container, idle and expire timeouts, etc.
This class has many influences from the PEAR HTTP_Session module
Located in /application/environment/session.php (line 37)
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.
Returns session variable
Returns local variable of a script
Two scripts can have local variables with the same names
Sets new ID of a session
Gets a value indicating whether the session was created with the current request
You MUST call this method only after you have started the session with the JSession::start() method.
Sets new local name
Sets new name of a session
Writes session data and ends session
Session data is usually stored after your script terminated without the need to call JSession::stop(), 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.
Register variable with the current session
Sets session variable
Sets the maximum expire time
If optional parameter is specified it determines the number of seconds after which session data will be seen as 'garbage' and cleaned up
It returns the previous value of this property
If optional parameter is specified it determines the probability that the gc (garbage collection) routine is started and session data is cleaned up
It returns the previous value of this property
Sets the maximum idle time
Sets the time-out period allowed between requests before the session-state provider terminates the session.
Sets local variable of a script.
Two scripts can have local variables with the same names.
Initializes session data
Creates a session (or resumes the current one based on the session id being passed via a GET variable or a cookie). You can provide your own name and/or id for a session.
Unregister a variable from the current session
If optional parameter is specified it indicates whether the module will use cookies to store the session id on the client side
It returns the previous value of this property
If optional parameter is specified it indicates whether the session id will automatically be appended to all links
It returns the previous value of this property
Documentation generated on Sat, 4 Feb 2006 14:26:32 +0100 by phpDocumentor 1.3.0RC4