NAME
Jifty::Web::Session - A Jifty session handler
DESCRIPTION
* Jifty sessions
* User gets a per-app session cookie in their first response from the server * User gets an updated cookie on any request where: 1) if the cookie parameters have changed 2) if the user's current sessionid doesn't match the cookie's session id
* The session cookie is handed out after all processing, but before any page content is displayed
* The user gets a cookie even if we're doing a redirect.
* In the future, we might want to not give the user a cookie.
* Debugging
** Should log: * User presented a session cookie * Loaded session from disk * Failed to load session from disk (expired) * Created a new session * Sent a session cookie to the user.
load
Load up the current session from a cookie
unload
Flush the session to diskd and quit.
loaded
Returns true if the session has already been loaded
get KEY
Returns the value for KEY
for the current user's session
set KEY => VALUE
Sets the value VALUE
for KEY
for the current user's session
remove KEY
Remove key KEY
from the cache.
set_continuation KEY VALUE
Stores a continuation in the session
get_continuation KEY
Pulls a continuation from the current session. Expects a continuation id
remove_continuation CONTINUATION_ID
Removes a continuation with id CONTINUATION id from the store.
continuations
Return a hash of all the continuations in this session. Keyed by continuation_id
.
set_cookie
Sets the session cookie
cookie_name
Returns the current session's cookie_name. (It's a generic thing for all users
expires
Return this cache entry's expirey date, in the format expected by Cache::Cache;