X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FPlack%2FSession.pm;h=7c0a60c20a8db01399612fbb0b6f88f23bede9e1;hb=3d92cf47c8b9eca07fcbf2bb856963f49c68228e;hp=6473b27849f2445f71650114473dfa8f347e7899;hpb=01fb49064ecd29f290b9e81f0b23a034780f52ef;p=catagits%2FWeb-Session.git diff --git a/lib/Plack/Session.pm b/lib/Plack/Session.pm index 6473b27..7c0a60c 100644 --- a/lib/Plack/Session.pm +++ b/lib/Plack/Session.pm @@ -60,8 +60,23 @@ Plack::Session - Middleware for session management use Plack::Session; + my $store = Plack::Session::Store->new; + my $state = Plack::Session::State->new; + + my $s = Plack::Session->new( + store => $store, + state => $state, + request => Plack::Request->new( $env ) + ); + + # ... + =head1 DESCRIPTION +This is the core session object, you probably want to look +at L, unless you are writing your +own session middleware component. + =head1 METHODS =over 4 @@ -91,7 +106,8 @@ an object with an equivalent interface. =head2 Session Data Storage -These methods delegate to appropriate methods on the C. +These methods delegate to appropriate methods on the C +to manage your session data. =over 4