1Plack::Session::Store(3Upsme)r Contributed Perl DocumentaPtliaocnk::Session::Store(3pm)
2
3
4

NAME

6       Plack::Session::Store - Basic in-memory session store
7

SYNOPSIS

9         use Plack::Builder;
10         use Plack::Middleware::Session;
11         use Plack::Session::Store;
12
13         my $app = sub {
14             return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ];
15         };
16
17         builder {
18             enable 'Session'; # this is the defalt store
19             $app;
20         };
21

DESCRIPTION

23       This is a very basic in-memory session data store. It is volatile
24       storage and not recommended for multiprocessing environments. However
25       it is very useful for development and testing.
26
27       This should be considered the store "base" class (although subclassing
28       is not a requirement) and defines the spec for all
29       Plack::Session::Store::* modules. You will only need to override a
30       couple methods if you do subclass. See the other
31       Plack::Session::Store::* for examples of this.
32

METHODS

34       new ( %params )
35           No parameters are expected to this constructor.
36
37   Session Data Management
38       These methods fetch data from the session storage. It's designed to
39       store or delete multiple keys at a time.
40
41       fetch ( $session_id )
42       store ( $session_id, $session )
43
44   Storage Management
45       remove ( $session_id )
46           This method is called by the Plack::Session "expire" method and is
47           used to remove any session data.
48

BUGS

50       All complex software has bugs lurking in it, and this module is no
51       exception. If you find a bug please either email me, or add the bug to
52       cpan-RT.
53

AUTHOR

55       Stevan Little <stevan.little@iinteractive.com>
56
58       Copyright 2009, 2010 Infinity Interactive, Inc.
59
60       <http://www.iinteractive.com>
61
62       This library is free software; you can redistribute it and/or modify it
63       under the same terms as Perl itself.
64
65
66
67perl v5.28.0                      2015-03-02        Plack::Session::Store(3pm)
Impressum