|
Catalyst::Plugin::Session::State::Cookie - Maintain session IDs using cookies. |
Catalyst::Plugin::Session::State::Cookie - Maintain session IDs using cookies.
use Catalyst qw/Session Session::State::Cookie Session::Store::Foo/;
In order for the Catalyst::Plugin::Session manpage to work the session ID needs to be stored on the client, and the session data needs to be stored on the server.
This plugin stores the session ID on the client using the cookie mechanism.
cookie_name in the response object.
session if it doesn't exist or if it's value is not
the current session id.
cookie_name parameter to it's default value if it isn't set.
Catalyst::Utils::apprefix($c) . '_session').
Sessions have to be created before the first write to be saved. For example:
sub action : Local {
my ( $self, $c ) = @_;
$c->res->write("foo");
$c->session( ... );
...
}
Will cause a session ID to not be set, because by the time a session is actually created the headers have already been sent to the client.
the Catalyst manpage, the Catalyst::Plugin::Session manpage.
Yuval Kogman <nothingmuch@woobling.org>
This module is derived from the Catalyst::Plugin::Session::FastMmap manpage code, and has been heavily modified since.
Andrew Ford Andy Grundman Christian Hansen Marcus Ramberg Jonathan Rockway <jrockway@cpan.org> Sebastian Riedel
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
|
Catalyst::Plugin::Session::State::Cookie - Maintain session IDs using cookies. |