NAME

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

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

A2CSessionCookieName
A2CSessionCookieExpires

See Apache2::Cookie for valid fixed-duration strings.

A2CSessionCookiePath

Restrict the cookie path to something other than the default.

A2CSessionCookieSecure

Set the 'secure' flag on the cookie, which means it works only when transmitted by HTTPS.

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

Apache2::Controller::Session

Apache2::Cookie

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.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 26:

Unknown directive: =over4

Around line 28:

'=item' outside of any '=over'