|
NAMEPlack::Session::State - Basic parameter-based session stateSYNOPSISuse Plack::Builder; use Plack::Middleware::Session; use Plack::Session::State; my $app = sub { return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ]; }; builder { enable 'Session', state => Plack::Session::State->new; $app; }; DESCRIPTIONThis will maintain session state by passing the session through the request params. It does not do this automatically though, you are responsible for passing the session param.This should be considered the state "base" class (although subclassing is not a requirement) and defines the spec for all Plack::Session::State::* modules. You will only need to override a couple methods if you do subclass. See Plack::Session::State::Cookie for an example of this. WARNING: parameter based session ID management makes session fixation really easy, and that makes your website vulnerable. You should really avoid using this state in the production environment except when you have to deal with legacy HTTP clients that do not support cookies. In the future this parameter based state handling will be removed from this base class and will be moved to its own State class. METHODS
Session ID Managment
Session Expiration Handling
BUGSAll complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.AUTHORStevan Little <stevan.little@iinteractive.com>COPYRIGHT AND LICENSECopyright 2009, 2010 Infinity Interactive, Inc.<http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |