SessionClient API

API for a session management used in the WSGI Adaptor

LocalSessionClient

This class provides in-process session management using anydbm.

LocalSessionClient (dbFileName, cookieName, sessionLifeSpan = 3600)

Creates a session client using the the file dbFileName for session storage.  The cookieName contains the name of the cookie that will be sent to the client to identify the session.  The sessionLifeSpan is in seconds, and defaults to one hour.

getSession (cookies)

Used by the WSGI Adaptor to retrieve the session for a client in order to pass it to the application through the Request object.

saveSession (session)

Used by the WSGI Adaptor to save the contents of a session for future retrieval.

closeClient()

Un-used.  Tells the client that no further sessions will be requested or saved.

SessionServerClient (socketLocation, cookieName, sessionLifeSpan = 3600)

Connects to a SessionServer listening on the Unix domain socket at the socketLocation.  All other parameters and methods are the same as for LocalSessionClient.

Last Modified: Sun, 01 Feb 2015 10:59:33 CET

Made with PubTal 3.5

Copyright 2021 Colin Stewart

Email: colin at owlfish.com