Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

jifty::web::session::jdbi(3pm) [debian 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)

Check Out this Related Man Page

Plack::Session(3pm)					User Contributed Perl Documentation				       Plack::Session(3pm)

NAME
Plack::Session - Middleware for session management SYNOPSIS
# Use with Middleware::Session enable "Session"; # later in your app use Plack::Session; my $app = sub { my $env = shift; my $session = Plack::Session->new($env); $session->id; $session->get($key); $session->set($key, $value); $session->remove($key); $session->keys; $session->expire; }; DESCRIPTION
This is the core session object, you probably want to look at Plack::Middleware::Session, unless you are writing your own session middleware component. METHODS
new ( $env ) The constructor takes a PSGI request env hash reference. id This is the accessor for the session id. Session Data Management These methods allows you to read and write the session data like Perl's normal hash. get ( $key ) set ( $key, $value ) remove ( $key ) keys session, dump Session Lifecycle Management expire This method can be called to expire the current session id. BUGS
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT. AUTHOR
Stevan Little <stevan.little@iinteractive.com> COPYRIGHT AND LICENSE
Copyright 2009, 2010 Infinity Interactive, Inc. <http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.4 2011-03-29 Plack::Session(3pm)
Man Page