Eve::Session - a persistent session class.
# Construct the session object my $session = Eve::Session->new( id => $md5_id, storage_path => '/storage/path', expiration_interval => 3600); # Get the session identifier my $id = $session->get_id(); # Set ang get the parameter $session->set_parameter(name => 'foo', value => 'bar'); my $foo = $session->get_parameter(name => 'foo'); # Set the parameter expired after 600 seconds of idling $session->set_parameter( name => 'foo', value => 'bar', expiration_interval => 600); # Clear the parameter $session->clear_parameter(name => 'foo');
Eve::Session is a persistent session class allowing to share an identified state between application calls. The class adapts the package CGI::Session.
id
a session ID string (it can differ from the actual ID, see the get_id() method documentation)
get_id()
storage_path
a path on the server where session files are stored
expiration_interval
an interval of idling from the last access when the session is considered actual (0 cancels expiration).
(read only) an expiration interval in seconds that has been initially set for the session.
Eve::Error::Session
when the session creation is unsuccessful.
An md5 string identified the session. The string can be different from one that is specified in the constructor in case of not existing or expired session.
Sets a named parameter in the session.
name
value
an interval of idling from the last access when the parameter is considered actual (0 cancels expiration).
The value passed to the method.
A parameter value.
Clears the parameter from the session.
An old parameter value.
Copyright 2012 Igor Zinovyev.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
Sergey Konoplev
To install Eve, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Eve
CPAN shell
perl -MCPAN -e shell install Eve
For more information on module installation, please visit the detailed CPAN module installation guide.