1Plack::Middleware::SessUisoenr::CCoonotkriieb(u3tpemd)PPelralckD:o:cMuimdednlteawtairoen::Session::Cookie(3pm)
2
3
4
6 Plack::Middleware::Session::Cookie - Session middleware that saves
7 session data in the cookie
8
10 enable 'Session::Cookie',
11 session_key => 'my_session',
12 expires => 3600, # 1 hour
13 secret => 'top-secret'
14 ;
15
17 This middleware component allows you to use the cookie as a sole cookie
18 state and store, without any server side storage to do the session
19 management. This middleware utilizes its own state and store
20 automatically for you, so you can't override the objects.
21
23 This middleware is a subclass of Plack::Middleware::Session and accepts
24 most configuration of the parent class. In addition, following options
25 are accepted.
26
27 secret
28 Server side secret to sign the session data using HMAC SHA1.
29 Defaults to nothing (i.e. do not sign) but strongly recommended to
30 set your own secret string.
31
32 Unless you use your own serializer/deserializer, running this
33 middleware without setting a secret is vulnerable to arbitrary code
34 execution. In the future release it will be required to set the
35 secret.
36
37 session_key, domain, expires, path, secure, httponly
38 Accessors for the cookie attributes. See
39 Plack::Session::State::Cookie for these options.
40
42 Tatsuhiko Miyagawa
43
45 Rack::Session::Cookie
46 <http://www.rubydoc.info/github/rack/rack/Rack/Session/Cookie>
47 Dancer::Session::Cookie
48
49
50
51perl v5.32.0 2020-0P7l-a2c8k::Middleware::Session::Cookie(3pm)