NAME
Apache2::Controller::Session::Cookie - track a sessionid with a cookie in A2C
VERSION
Version 0.101.111 - BETA TESTING (ALPHA?)
SYNOPSIS
See Apache2::Controller::Session for detailed setup example.
package MyApp::Session;
use base qw( Apache2::Controller::Session::Cookie );
sub get_options {
# ...
}
1;
DESCRIPTION
This module implements get_session_id
and set_session_id
to get and set the session id from a cookie.
DIRECTIVES
- A2CSessionCookieOptions
Apache2::Controller::Directives
METHODS
These methods must by implemented by any Apache2::Controller::Session subclass.
get_session_id
my $sid = $self->get_session_id();
Get the session id from the cookie.
Sets <$r-
notes->{session_id}>> to be the session id string.
Sets <$r-
pnotes->{session_cookie}>> to be the Apache2::Cookie object.
set_session_id
$self->set_session_id($sid);
Set the session id in the cookie.
SEE ALSO
AUTHOR
Mark Hedges, <hedges at scriptdolphin.org>
COPYRIGHT & LICENSE
Copyright 2008 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.