The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.