Package smisk :: Module core :: Class SessionStore
[frames] | no frames]

Class SessionStore

object --+
         |
        SessionStore
Known Subclasses:

Basic session store type
Instance Methods
 
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
None
destroy(...)
object
read(...)
None
refresh(...)
None
write(...)

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties
string name
Name used to identify the session id cookie.
int ttl
For how long a session should be valid, expressed in seconds.

Inherited from object: __class__

Method Details

__init__(...)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

destroy(...)

 
Parameters:
  • session_id (string) - Session ID
Returns: None

read(...)

 
Parameters:
  • session_id (string) - Session ID
Returns: object

refresh(...)

 
Parameters:
  • session_id (string) - Session ID
Returns: None

write(...)

 
Parameters:
  • session_id (string) - Session ID
  • data (object) - Data to be associated with session_id
Returns: None

Property Details

name

Name used to identify the session id cookie. Defaults to "SID"
Type:
string

ttl

For how long a session should be valid, expressed in seconds. Defaults to 900.
Type:
int