Catalyst::Plugin::Session::Flex - Apache::Flex sessions for Catalyst
use Catalyst 'Session::Flex';
MyApp->config->{session} = { Store => 'File', Lock => 'Null', Generate => 'MD5', Serialize => 'Storable', expires => '+1M', cookie_name => 'session', };
Session management using Apache::Session via Apache::Session::Flex
Clear the existing session from storage and create a new 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.
Extends an uri with session id if needed.
my $uri = $c->uri('http://localhost/foo');
All of the options are inheritied from Apache::Session::Flex and various Apache::Session modules such as Apache::Session::File.
To enable automatic storing of sessions in the url set this to a true value.
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.
Set the domain of the session cookie
Set the path of the session cookie
If true only set the session cookie if the request was retrieved via HTTPS.
Specify the name of the session cookie
Catalyst Apache::Session Apache::Session::Flex CGI::Cookie
Rusty Conover rconover@infogears.com
rconover@infogears.com
Patched by:
Andy Grundman andy@hybridized.org
andy@hybridized.org
John Beppu beppu@somebox.com
beppu@somebox.com
Based off of Catalyst::Plugin::Session::FastMmap by:
Sebastian Riedel, sri@cpan.org Marcus Ramberg mramberg@cpan.org
sri@cpan.org
mramberg@cpan.org
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Plugin::Session::Flex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Session::Flex
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Session::Flex
For more information on module installation, please visit the detailed CPAN module installation guide.