Plack::Middleware::Session::Cookie(3pm) | User Contributed Perl Documentation | Plack::Middleware::Session::Cookie(3pm) |
Plack::Middleware::Session::Cookie - Session middleware that saves session data in the cookie
enable 'Session::Cookie', session_key => 'my_session', expires => 3600, # 1 hour secret => 'top-secret' ;
This middleware component allows you to use the cookie as a sole cookie state and store, without any server side storage to do the session management. This middleware utilizes its own state and store automatically for you, so you can't override the objects.
This middleware is a subclass of Plack::Middleware::Session and accepts most configuration of the parent class. In addition, following options are accepted.
Unless you use your own serializer/deserializer, running this middleware without setting a secret is vulnerable to arbitrary code execution. In the future release it will be required to set the secret.
Tatsuhiko Miyagawa
Rack::Session::Cookie <http://www.rubydoc.info/github/rack/rack/Rack/Session/Cookie> Dancer::Session::Cookie
2022-10-16 | perl v5.34.0 |