GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PLACK::MIDDLEWARE::SESSION::COOKIE (3)

.ds Aq ’

NAME

Plack::Middleware::Session::Cookie - Session middleware that saves session data in the cookie

CONTENTS

SYNOPSIS



  enable Session::Cookie,
    session_key => my_session,
    expires     => 3600, # 1 hour
    secret      => top-secret
    ;



DESCRIPTION

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.

CONFIGURATIONS

This middleware is a subclass of Plack::Middleware::Session and accepts most configuration of the parent class. In addition, following options are accepted.
secret Server side secret to sign the session data using HMAC SHA1. Defaults to nothing (i.e. do not sign) but <B>strongly recommendedB> to set your own secret string.

Unless you use your own serializer/deserializer, running this middleware without setting a secret is vulnerable to arbitrary code execution. <B>In the future release it will be required to set the secretB>.

session_key, domain, expires, path, secure, httponly Accessors for the cookie attributes. See Plack::Session::State::Cookie for these options.

AUTHOR

Tatsuhiko Miyagawa

SEE ALSO

Rack::Session::Cookie <http://www.rubydoc.info/github/rack/rack/Rack/Session/Cookie> Dancer::Session::Cookie
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLACK::MIDDLEWARE::SESSION::COOKIE (3) 2015-03-02

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.