The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catalyst::Plugin::Session::Flex - Apache::Flex sessions for Catalyst

SYNOPSIS

use Catalyst 'Session::Flex';

MyApp->config->{session} = { Store => 'File', Lock => 'Null', Generate => 'MD5', Serialize => 'Storable', expires => '+1M', cookie_name => 'session', };

DESCRIPTION

Session management using Apache::Session via Apache::Session::Flex

EXTENDED METHODS

finalize

prepare_action

session_clear

Clear the existing session from storage and create a new session.

session

Return the session as a hash reference. If a session id was found via a URL or cookie from the client it will be used to retrieve the data previously stored. If the previous session id was invalid or otherwise unretrievable, create a new session.

setup

METHODS

session

uri

Extends an uri with session id if needed.

    my $uri = $c->uri('http://localhost/foo');

CONFIG OPTIONS

All of the options are inheritied from Apache::Session::Flex and various Apache::Session modules such as Apache::Session::File.

rewrite

To enable automatic storing of sessions in the url set this to a true value.

expires

By default, the session cookie expires when the user closes their browser. To keep a persistent cookie, set an expires config option. Valid values for this option are the same as in CGI, i.e. +1d, +3M, and so on.

domain

Set the domain of the session cookie

path

Set the path of the session cookie

secure

If true only set the session cookie if the request was retrieved via HTTPS.

Specify the name of the session cookie

SEE ALSO

Catalyst Apache::Session Apache::Session::Flex CGI::Cookie

AUTHOR

Rusty Conover rconover@infogears.com

Patched by:

Andy Grundman andy@hybridized.org

John Beppu beppu@somebox.com

Based off of Catalyst::Plugin::Session::FastMmap by:

Sebastian Riedel, sri@cpan.org Marcus Ramberg mramberg@cpan.org

COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.