Apache-SessionManager
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
use vars qw($opt_n);
getopts('n');
#unless (getopts("n")) {
# die "Usage: $0 [-n]\n";
#}
my($errors, $warnings);
my $necessary_modules = {
# 'Apache' => 'The Apache Perl API',
'Apache::Session 1.54' => 'A persistence framework for session data'
};
my $optional_modules = {
'Apache::Request 0.33' => 'Apache API to manage HTTP cookies (CGI::Cookie will be used instead)',
'CGI::Cookie' => 'CGI library to manage HTTP cookies (used only if Apache::Request isn\'t installed)'
};
print "Checking for REQUIRED modules...\n";
# Check mod_perl version
Description
-----------
This is version 1.03 of Apache::SessionManager
This package is an HTTP session manager.
Apache::SessionManager is a mod_perl module that helps
session management of a web application. This simple module is a
wrapper around Apache::Session persistence framework for session data.
It creates a session object and makes it available to all other handlers
transparenlty by putting it in pnotes.
See perldoc Apache::SessionManager for module documentation and use
See perldoc Apache::SessionManager::cookpod for more info about module use
Changes from previous version
-----------------------------
* Adopted dotted-quad/mask syntax (eg "192.168.0.0/16") when setting
SessionManager.pm view on Meta::CPAN
sub handler {
my $r = shift;
my $session = Apache::SessionManager::get_session($r);
...
}
=head1 DESCRIPTION
Apache::SessionManager is a mod_perl (1.0 and 2.0) module that helps session
management of a web application. This module is a wrapper around
L<Apache::Session|Apache::Session> persistence framework for session data. It
creates a session object and makes it available to all other handlers
transparenlty by putting it in pnotes. In a mod_perl handlers you can retrieve
the session object directly from pnotes with predefined key
C<SESSION_MANAGER_HANDLE>:
my $session = $r->pnotes('SESSION_MANAGER_HANDLE') ? $r->pnotes('SESSION_MANAGER_HANDLE') : ();
then it is possible to set a value in current session with:
$$session{'key'} = $value;
SessionManager.pm view on Meta::CPAN
PerlSetVar SessionManagerCookieArgs "Path => /some-path, \
Domain => .yourdomain.com, \
Secure => 1"
Please see the documentation for L<Apache::Cookie|Apache::Cookie> or
L<CGI::Cookie|CGI::Cookie> in order to see more cookie arguments details.
=item C<SessionManagerStore> datastore
This single directive sets the session datastore used by
L<Apache::Session|Apache::Session> framework
PerlSetVar SessionManagerStore File
The following datastore plugins are available with
L<Apache::Session|Apache::Session> distribution:
=over 4
=item * File
( run in 0.951 second using v1.01-cache-2.11-cpan-df04353d9ac )