Apache::SessionManager is a mod_perl 1.0/2.0 session manager extension to manage sessions over HTTP requests.
SYNOPSIS
In httpd.conf (mod_perl 1):
PerlModule Apache::SessionManager
PerlTransHandler Apache::SessionManager
< Location /my-app-with-session >
SetHandler perl-script
PerlHandler Apache::MyModule
PerlSetVar SessionManagerTracking On
PerlSetVar SessionManagerExpire 3600
PerlSetVar SessionManagerInactivity 900
PerlSetVar SessionManagerStore File
PerlSetVar SessionManagerStoreArgs "Directory = > /tmp/apache_sessions"
< /Location >
< Location /my-app-without-sessions >
PerlSetVar SessionManagerTracking Off
< /Location >
In httpd.conf (mod_perl 2):
PerlModule Apache2
PerlModule Apache::SessionManager
PerlTransHandler Apache::SessionManager
< Location /my-app-with-session >
SetHandler perl-script
PerlResponseHandler Apache::MyModule
PerlSetVar SessionManagerTracking On
PerlSetVar SessionManagerExpire 3600
PerlSetVar SessionManagerInactivity 900
PerlSetVar SessionManagerStore File
PerlSetVar SessionManagerStoreArgs "Directory = > /tmp/apache_sessions"
< /Location >
In a mod_perl module handler:
sub handler {
my $r = shift;
my $session = Apache::SessionManager::get_session($r);
...
}
Product's homepage
Requirements:
· Perl