interface documentation
class ISessionProcurer(Interface): (source)
Known implementations: klein.SessionProcurer
An ISessionProcurer
wraps an ISessionStore
and can procure sessions that store, given HTTP request objects.
Method | procure |
Retrieve a session using whatever technique is necessary. |
Retrieve a session using whatever technique is necessary.
If the request already identifies an existing session in the store, retrieve it. If not, create a new session and retrieve that.
Parameters | |
request:IRequest | The request to procure a session from. |
forcebool | Even if the request was transmitted securely (i.e. over HTTPS), retrieve the session that would be used by the same browser if it were sending an insecure (i.e. over HTTP) request; by default, this is False, and the session's security will match that of the request. |
Returns | |
Deferred | a
|