Home | Trees | Index | Help |
|
---|
Package lemon :: Package session :: Package drivers :: Module db :: Class DB |
|
Base
--+
|
DB
The main session class for database storage of sessions. See the information in lemon.session.start() for details of how to use it. The class should not be called directly becuase error-checking occurs in lemon.session.start().
Method Summary | |
---|---|
Initialise the class with the parameters as specified in the lemon.session.start() function. | |
Create a new session setting the 'Created' and 'Accessed' variables. | |
Remove all expired sessions. | |
Removes the variable from the session store. | |
Gets the variable 'key' from the session store. | |
Remove session information from the session store. | |
Returns True if the session already exists, False otherwise. | |
Sets the variable 'key' to the value 'value' after pickling it. | |
Inherited from Base | |
Allows the use of a dictionary-style interface to the session class. | |
Allows the use of a dictionary-style interface to the session class. | |
Allows the use of a dictionary-style interface to the session class. | |
| |
Deprecated. | |
Find out if a session was automatically created and hence whether this was the first visit. | |
Public method to remove a session variable. | |
End a session and remove the session cookie. | |
Public method to retrieve a session variable. | |
Get the value of one of the params specified in lemon.session.start()... | |
Allow a user to use the previously reserved variable name 'key'. | |
Prevent a user using the variable name 'key'. | |
Public method to set a session variable. | |
Deprecated. | |
Private method to start a new session. | |
Private method to generate a new sessionID. | |
Private method to read the sessionID from the session cookie. | |
Private method to remove session cookie. | |
Private method to set the session cookie with the options specified by the cookie param in ... |
Method Details |
---|
__init__(self,
app,
expires,
sessionID,
cookie,
seed,
cleanup,
database,
table)
|
_addSession(self, sessionID, length)Create a new session setting the 'Created' and 'Accessed' variables.
|
_cleanupSessions(self)Remove all expired sessions. |
_delete(self, key)Removes the variable from the session store.
|
_get(self, key, app=None, pickleValue=True)Gets the variable 'key' from the session store.
|
_removeSession(self, sessionID)Remove session information from the session store. |
_sessionExists(self, sessionID)Returns True if the session already exists, False otherwise. |
_set(self, key, value, app=None, pickleValue=True)Sets the variable 'key' to the value 'value' after pickling it. # XXX The app functionality is not tested
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Nov 10 15:07:58 2003 | http://epydoc.sf.net |