Wombat::SessionManager::SessionManagerBase - session manager base class
Minimal base implementation of Wombat::SessionManager. This class supports no session persistence or distributable capabilities. This class may be subclassed to create more sophisticated Manager implementations. Subclasses MUST override add(), getName(), getSession(), getSessions(), and remove().
add()
getName()
getSession()
getSessions()
remove()
Construct and return a Wombat::SessionManager::SessionManagerBase instance, initializing fields appropriately. If subclasses override the constructor, they must be sure to call
$self->SUPER::new();
Return the Container for which this SessionManager manages Sessions.
Set the Container for which this SessionManager manages Sessions.
Parameters:
the Wombat::Container
Return the default maximum inactive interval in seconds for Sessions created by this SessionManager.
Set the default maximum inactive interval for Sessions created by this SessionManager.
the new interval, in seconds
Construct and return a Wombat::Session, based on the default settings specified by this SessionManager's fields. The session id will be assigned by this method.
Throws:
if a new Session cannot be created for, any reason
Subclasses MUST override all of these methods.
Add this Session to the set of active Sessions for this SessionManager.
the Wombat::Session to be added
Return the display name of this SessionManager.
Return the active Session managed by this SessionManager with the specified id, or undef if no session exists with that id.
undef
the id for the Session to be returned
if the session exists but cannot be returned, for any reason
Return an array containing the active Sessions managed by this SessionManager.
Remove this Session from the active Sessions managed by this SessionManager.
the Wombat::Session to remove
Prepare for active use of this SessionManager. This method should be called before any of the public methods of the SessionManager are utilized.
if the SessionManager has already been started
Gracefully terminate active use of this SessionManager. Once this method has been called, no public methods of the SessionManager should be utilized.
if the SessionManager is not started
Wombat::Container, Wombat::Core::Session
Brian Moseley, bcm@maz.org
To install Wombat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wombat
CPAN shell
perl -MCPAN -e shell install Wombat
For more information on module installation, please visit the detailed CPAN module installation guide.