A CherryPy dict-like Session object (one per request).
|
|
|
|
|
__init__(self,
id=None,
**kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
regenerate(self)
Replace the current session (with a new id). |
source code
|
|
|
|
|
|
|
|
|
|
|
load(self)
Copy stored session data into this session instance. |
source code
|
|
|
|
|
|
|
|
|
|
|
pop(self,
key,
default=False)
Remove the specified key and return the corresponding value. |
source code
|
|
|
|
True if D has a key k, else False.
|
|
D[k] if k in D, else d
|
|
None
|
update(D,
E)
Update D from E: for k in E: D[k] = E[k]. |
source code
|
|
D.get(k,d), also set D[k]=d if k not in D.
|
|
None
|
|
list of D's keys.
|
|
list of D's (key, value) pairs, as 2-tuples.
|
|
list of D's values.
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
_id = None
hash(x)
|
|
id_observers = None
A list of callbacks to which to pass new id's.
|
|
timeout = 60
Number of minutes after which to delete session data.
|
|
locked = False
If True, this session instance has exclusive read/write access to
session data.
|
|
loaded = False
If True, data has been retrieved from storage.
|
|
clean_thread = None
Class-level Monitor which calls self.clean_up.
|
|
clean_freq = 5
The poll rate for expired session cleanup in minutes.
|
|
originalid = None
The session id passed by the client.
|
|
missing = False
True if the session requested by the client did not exist.
|
|
regenerated = False
True if the application called session.regenerate().
|
|
debug = False
|