logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Plack::Session::Store::Null - Null store

Author

Bugs

       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.

Description

       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.

       This is a subclass of Plack::Session::Store and implements its full interface.

Name

       Plack::Session::Store::Null - Null store

Synopsis

         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;
         };

See Also