| |
Methods defined here:
- __init__(self, pool, request, response)
- _freeze(self)
- freezes sess and dumps it into the sesspool. call at end of page
- _gc(self)
- occasionally drains the sesspool
- _getSid(self)
- figures out which session id to use
- _thaw(self)
- gets a frozen sess out of the sesspool and thaws it out
- abandon(self)
- abandons the session
- newUniqueSid(self)
- pop(self, key)
- start(self, sid=None)
- starts the session. call at the top of the page.
Not really sure why you'd ever want to pass
the sid variable in.. except possibly for testing..
but PHPLIB lets you do it, so I guess I will, too.
- stop(self)
- Call at end of page to stop the session. (it calls _freeze)
- url(self, oldurl)
- returns oldurl, but referencing the current session.
If in get mode, the current session id is attached to this
URL, else the URL is returned unmodified.
Data and non-method functions defined here:
- _Sess__super = <class UserDict.UserDict>
- __doc__ = None
- __module__ = 'weblib.Sess'
Methods inherited from UserDict.UserDict:
- __cmp__(self, dict)
- __contains__(self, key)
- __delitem__(self, key)
- __getitem__(self, key)
- __len__(self)
- __repr__(self)
- __setitem__(self, key, item)
- clear(self)
- copy(self)
- get(self, key, failobj=None)
- has_key(self, key)
- items(self)
- iteritems(self)
- iterkeys(self)
- itervalues(self)
- keys(self)
- popitem(self)
- setdefault(self, key, failobj=None)
- update(self, dict)
- values(self)
|