
PApp::Session - manage session-specific data.

use PApp::Session; # see also PApp::Prefs and PApp::Env

This module manages session-specific variables, that is, values that get associated with all accesses within a single session. Session variables keep their value when old states get re-requested, as opposed to state variables that change back to their old value, and can be used for transactions or other data that belongs to a whole session and not a single access.
Execute the given block while the session table is locked against changes from other processes. Needless to say, the block should execute as fast as possible. Returns the return value of BLOCK (which is called in scalar context).
Return the named session variable (or undef, when the variable does not exist).
Set the named session variable. If $value is undef, then the variable will be deleted. You can pass in (serializable) references.
Return a reference to the session value (i.e. a PApp::DataRef object). Updates to the referend will be seen by all processes.

PApp::Prefs, PApp::Env, PApp, PApp::User.

Marc Lehmann <schmorp@schmorp.de> http://home.schmorp.de/