1Plack::Session::State::UCsoeorkiCeo(n3tprmi)buted Perl DPolcaucmke:n:tSaetsisoinon::State::Cookie(3pm)
2
3
4
6 Plack::Session::State::Cookie - Basic cookie-based session state
7
9 use Plack::Builder;
10 use Plack::Middleware::Session;
11
12 my $app = sub {
13 return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ];
14 };
15
16 builder {
17 enable 'Session'; # Cookie is the default state
18 $app;
19 };
20
22 This is a subclass of Plack::Session::State and implements its full
23 interface. This is the default state used in
24 Plack::Middleware::Session.
25
27 new ( %params )
28 The %params can include path, domain, expires, secure, and httponly
29 options, as well as all the options accepted by
30 Plack::Session::Store.
31
32 path
33 Path of the cookie, this defaults to "/";
34
35 domain
36 Domain of the cookie, if nothing is supplied then it will not be
37 included in the cookie.
38
39 expires
40 Expiration time of the cookie in seconds, if nothing is supplied
41 then it will not be included in the cookie, which means the session
42 expires per browser session.
43
44 secure
45 Secure flag for the cookie, if nothing is supplied then it will not
46 be included in the cookie.
47
48 httponly
49 HttpOnly flag for the cookie, if nothing is supplied then it will
50 not be included in the cookie.
51
53 All complex software has bugs lurking in it, and this module is no
54 exception. If you find a bug please either email me, or add the bug to
55 cpan-RT.
56
58 Stevan Little <stevan.little@iinteractive.com>
59
61 Copyright 2009, 2010 Infinity Interactive, Inc.
62
63 <http://www.iinteractive.com>
64
65 This library is free software; you can redistribute it and/or modify it
66 under the same terms as Perl itself.
67
68
69
70perl v5.28.1 2015-03-02Plack::Session::State::Cookie(3pm)