Sam Vilain > PSA-0.49_01 > PSA::Session

Download:
PSA-0.49_01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

PSA::Session - PSA persistent Session data

SYNOPSIS ^

 my $session = PSA::Session->fetch($storage, $sid);

 $session->data->{myStuff} = $stuff;

 # when done
 $storage->update($session);

DESCRIPTION ^

PSA::Session is for session-persistent state. Note that the data hash can contain arbitrary references to other Tangram storage objects.

CLASS METHODS ^

PSA::Session->fetch($storage, $sid)

Loads a session from the $storage, or creates one.

$sid is a Session ID to resume, if any

$storage is a Tangram::Storage object that can contain PSA::Session objects

PSA::Session->create(@values)

Creates a new session.