OpenFrame::AppKit::Session - sessions for OpenFrame
use OpenFrame::AppKit::Session; my $session = OpenFrame::AppKit::Session->new(); my $id = $session->id(); $session->store(); my $restored = OpenFrame::AppKit::Session->fetch( $id );
OpenFrame::AppKit::Session provides a session class that is capable of being stored and restored from disk. The session expects you to treat it as a standard HASH for all intents and purposes, but does allow you to encapsulate that with the methods get and set for top level keys.
new
The new() method instantiates a new OpenFrame::AppKit::Session and returns it.
new()
init
The init() method provides initialization routines for OpenFrame::AppKit::Session
init()
id
The id() method returns the sessions id
id()
generate_id
The generate_id() method returns a new id, or the old id if it has already been generated.
generate_id()
store
The store() method serializes the session to disk. It returns the session id that can be used to restore the session.
store()
fetch
The fetch() method takes a session id as a parameter and returns a restored session from disk. In the case that the session is unavailable it returns nothing.
fetch()
get
The get() method simply returns a key as specified by the first parameter and returns its value.
get()
set
The set() method simply sets a key value pair as specified by the first two parameters.
set()
OpenFrame::AppKit::Segment::Sesssion
James A. Duncan <jduncan@fotango.com>
Copyright 2002 Fotango Ltd. All Rights Reserved
This program is released under the same license as Perl itself.
To install OpenFrame::AppKit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenFrame::AppKit
CPAN shell
perl -MCPAN -e shell install OpenFrame::AppKit
For more information on module installation, please visit the detailed CPAN module installation guide.