Plack::Session::Store::Null - Null store
use Plack::Builder; use Plack::Middleware::Session; use Plack::Session::Store::Null; my $app = sub { return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ]; }; builder { enable 'Session', store => Plack::Session::Store::Null->new; $app; };
Sometimes you don't want to store anything in your sessions, but Plack::Session requires a store instance, so you can use this one and all methods will return null.
store
This is a subclass of Plack::Session::Store and implements its full interface.
All 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.
Stevan Little <stevan.little@iinteractive.com>
Copyright 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.
To install Plack::Session, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Session
CPAN shell
perl -MCPAN -e shell install Plack::Session
For more information on module installation, please visit the detailed CPAN module installation guide.