This class represents a session, a way to contain information between multiple requests from one client.
It will make it easier to store and retrieve things and also create and check for the existence of a session. So it's mostly a convinience class. If a session is available at construction time (i.e. when the constructor is called) the session will automatically be resumed.
Located in /Session.php (line 41)
The constructor. Resumes a session if a session is available.
Checks to see if a session is available, if one is. It will be resumed. Otherwise nothing is done. New sessions have to be created manually.
Starts a new session.
Destroys the session.
Destroys the current session, all the data stored in the session will be lost. To clarify, it also unsets all the global variables stored in _SESSION.
Gets something previously stored in the session.
Tries to retrive an object earlier stored in the session. If no object with the given key name exists, NULL is returned.
Returns the session id in used for the current session.
If there is a current session the id for that one is returned. I.e. this is the id the client gave which identifies its session. If there is no session NULL is returned.
Checks if something is available in the session with the asked for key.
Checks if this IsmoSession instance has a valid client session or not.
To clarify, a IsmoSession instance can exist but no client session. The IsmoSession class just represents the session if it's available, if it's not available the class represents an non-existent session. And it has a method to create a session.
Checks if the session id came from a cookie.
Checks if the session id came from the URL.
Checks if a session is available for resuming.
By checking if there is a cookie or a get/post parameter set which match the session name identifier we can judge if there is a session available for resuming.
Puts something to be saved in the session.
Stores something in the session for later retrieval, as long as the session is still alive. If the session "dies" or is "ended" all the data associated with the session is lost.
If there is no active/current session a new one is started. If there is already previous saved object with the same key it's overwritten.
Removes the stored object from the session.
If an object with the given key exists in the session it's removed and true is returned otherwise false is returned.
Documentation generated on Mon, 14 Jun 2004 11:59:36 +0200 by phpDocumentor 1.3.0RC3