This class works in concert with the SessionServerAppMixin application mixin class to store session data in the Albatross session server. All management of session data storage is performed by the application class.
Inherits from the SessionBase class so you must call the constructor if you subclass this class.
) |
) |
) |
If an existing session is retrieved it is passed to
base64.decodestring()
and zlib.decompress()
then passed
to the decode_session() method (inherited from the
superclass). If an exception is raised during
decode_session() then the session will be deleted from the
server and a new session will be created via the application object
new_session() method.
) |
Before saving a session the method calls the superclass
encode_session() then calls zlib.compress()
and
base64.encodestring()
to convert the session to plain text
which is passed to the put_session() application method to
save the session.
) |