Jifty::Web::Session::None(3pm) User Contributed Perl Documentation Jifty::Web::Session::None(3pm)NAME
Jifty::Web::Session::None - A null session handler for jifty
DESCRIPTION
Jifty depends on its sessions to keep users logged in, to store continuations and to allow developers to store user-specific data. In
general, you don't want to disable them. But sometimes, the development benefits of Jifty lead you to build applications that genuinely
don't want per-user sessions. That's where "Jifty::Web::Session::None" comes in. By specifying that you want to use
"Jifty::Web::Session::None" as your Jifty session handler, you tell Jifty to avoid ever reading, writing or storing a user session. No
cookies get set. Nothing gets stored in the database.
USAGE
In your "etc/config.yml":
---
framework:
Web:
SessionClass:: Jifty::Web::Session::None
METHODS
All methods in this class are dummy methods which do no work. This class mocks the API provided by "Jifty::Web::Session".
new
Takes no arguments. Returns a Jifty::Web::Session::None.
id
Returns false.
create
Returns true.
load
Returns true.
unload
Returns true.
loaded
Returns true.
get
Returns false.
set
Returns false.
remove
Returns true.
set_continuation
Returns false.
get_continuation
Returns false.
remove_continuation
Returns false.
continuations
Returns false.
set_cookie
Returns false.
cookie_name
Returns false.
expires
Returns false.
perl v5.14.2 2010-09-25 Jifty::Web::Session::None(3pm)
Check Out this Related Man Page
Jifty::Web::Session::JDBI(3pm) User Contributed Perl Documentation Jifty::Web::Session::JDBI(3pm)NAME
Jifty::Web::Session - A Jifty session handler
SYNOPSIS
In your etc/config.yml (optional):
framework:
Web:
# The default ($PORT is replaced by the port the app is running on)
SessionCookieName: JIFTY_SID_$PORT
new
Returns a new, empty session.
id
Returns the session's id if it has been loaded, or "undef" otherwise.
create
Creates a new row in the Jifty::Model::Session table.
load [ID]
Load up the current session from the given "ID", or the appropriate cookie (see "cookie_name") otherwise. If both of those fail, creates a
session in the database.
load_by_kv key => value
Load up the current session from the given (key, value) pair. If no matching session could be found, it will create a new session with the
key, value set. Be sure that what you're loading by is unique. If you're loading a session based on, say, a timestamp, then you're asking
for trouble.
get KEY [TYPE]
Returns the value for "KEY" for the current user's session. "TYPE", which defaults to "key", allows accessing of other namespaces in the
session, including "metadata" and "continuation".
set KEY => VALUE, [TYPE]
Sets the value "VALUE" for "KEY" for the session. "TYPE", which defaults to "key", allows values to be set in other namespaces, including
"metadata" and "continuation". "VALUE" can be an arbitrary perl data structure -- "Jifty::Web::Session" will serialize it for you.
remove KEY, [TYPE]
Remove key "KEY" from the cache. "TYPE" defaults to "key".
remove_all
Removes the session from the database entirely.
continuations
Return a hash of all the continuations in this session, keyed by the continuations' "id".
perl v5.14.2 2010-12-08 Jifty::Web::Session::JDBI(3pm)