Apache2::Controller::Session::Cookie - track a sessionid with a cookie in A2C
Version 1.001.000
See Apache2::Controller::Session for detailed setup example.
package MyApp::Session; use base qw( Apache2::Controller::Session::Cookie ); sub get_options { # ... } 1;
This module implements get_session_id and set_session_id to get and set the session id from a cookie.
get_session_id
set_session_id
Apache2::Controller::Directives
Apache2::Cookie
These methods must by implemented by any Apache2::Controller::Session subclass.
my $sid = $self->get_session_id();
Get the session id from the cookie and verifies it.
Sets $r->pnotes->{a2c}{session_id} to be the session id string.
$r->pnotes->{a2c}{session_id}
See "get_cookie_jar" in Apache2::Controller::Methods and "A2C_Skip_Bogus_Cookies" in Apache2::Controller::Directives.
If the cookie is not present or invalid, returns undef.
Warns the debug log if sig validation fails and returns undef.
$self->set_session_id($sid);
Set the session id in the cookie.
Apache2::Controller::Session
"Apache2::Controller::Session" in Apache2::Controller::Directives
Apache2::Controller
Mark Hedges, <hedges at formdata.biz>
<hedges at formdata.biz>
Copyright 2008-2010 Mark Hedges, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This software is provided as-is, with no warranty and no guarantee of fitness for any particular purpose.
To install Apache2::Controller, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::Controller
CPAN shell
perl -MCPAN -e shell install Apache2::Controller
For more information on module installation, please visit the detailed CPAN module installation guide.