Apache2::Controller::Session::Cookie - track a sessionid with a cookie in A2C


Apache2-Controller documentation  | view source Contained in the Apache2-Controller distribution.

Index


NAME

Top

Apache2::Controller::Session::Cookie - track a sessionid with a cookie in A2C

VERSION

Top

Version 1.000.111

SYNOPSIS

Top

See Apache2::Controller::Session for detailed setup example.

 package MyApp::Session;
 use base qw( Apache2::Controller::Session::Cookie );
 sub get_options {
     # ...
 }
 1;

DESCRIPTION

Top

This module implements get_session_id and set_session_id to get and set the session id from a cookie.

DIRECTIVES

Top

Apache2::Controller::Directives

Apache2::Cookie

METHODS

Top

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 and verifies it.

Sets $r->pnotes->{a2c}{session_id} to be the session id string.

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.

set_session_id

 $self->set_session_id($sid);

Set the session id in the cookie.

SEE ALSO

Top

Apache2::Controller::Session

Apache2::Controller::Session in Apache2::Controller::Directives

Apache2::Controller

Apache2::Cookie

AUTHOR

Top

Mark Hedges, <hedges at formdata.biz>

COPYRIGHT & LICENSE

Top


Apache2-Controller documentation  | view source Contained in the Apache2-Controller distribution.