| Home | Trees | Index | Help |
|---|
|
|
A persistent user session.
A 'Session' object represents an ongoing user interaction with the web server.
|
|||
|
__init__(self,
request,
user_id,
expiration_timeout=21600)
Create a new session. |
|||
|
Touch(self)
Update the last access time on the session to now. |
|||
|
GetId(self)
Return the session ID. |
|||
|
GetUserId(self)
Return the ID of the user who owns this session. |
|||
|
GetUser(self)
Return the user record for the owning user. |
|||
|
IsDefaultUser(self)
Return true if the owning user is the default user. |
|||
|
IsExpired(self)
Return true if this session has expired. |
|||
|
Validate(self,
request)
Make sure the session is OK for a request. |
|||
|
|||
Create a new session. 'request' -- A 'WebRequest' object in response to which this session is created. 'user_id' -- The ID of the user owning the session. 'expiration_timeout -- The expiration time, in seconds. If a session is not accessed for this duration, it is expired and no longer usable. |
|
|
|
Return the user record for the owning user. returns -- A 'qm.user.User' object. |
|
|
Make sure the session is OK for a request. 'request' -- A 'WebRequest' object. raises -- 'InvalidSessionError' if the session is invalid for the request. |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:34 2007 | http://epydoc.sf.net |