X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FPlack%2FSession%2FState.pm;h=9b8314fbd1ff601d449d68233b1c28855c216857;hb=43f34c01a20c9f5b05bd43532d4b564fe6bd4817;hp=f55d9d7a9b5c36dffaddd5c75db3beb139be27fe;hpb=05b5f99d2078fb14c9338621b182cfb5d7858678;p=catagits%2FWeb-Session.git diff --git a/lib/Plack/Session/State.pm b/lib/Plack/Session/State.pm index f55d9d7..9b8314f 100644 --- a/lib/Plack/Session/State.pm +++ b/lib/Plack/Session/State.pm @@ -79,28 +79,69 @@ Plack::Session::State - Basic parameter-based session state =item B +This is the name of the session key, it default to 'plack_session'. + =item B +This is a CODE ref used to generate unique session ids. + =back +=head2 Session ID Managment + =over 4 =item B +Given a C<$request> this will first attempt to extract the session, +if the is expired or does not exist, it will then generate a new +session. The C<$request> is expected to be a L instance +or an object with an equivalent interface. + =item B +This will attempt to extract the session from a C<$request> by looking +for the C in the C<$request> params. It will then check to +see if the session has expired and return the session id if it is not. +The C<$request> is expected to be a L instance or an +object with an equivalent interface. + =item B +This will generate a new session id using the C callback. +The C<$request> argument is not used by this method but is there for +use by subclasses. The C<$request> is expected to be a L +instance or an object with an equivalent interface. + =item B +Given a C<$session_id> and a C<$response> this will perform any +finalization nessecary to preserve state. This method is called by +the L C method. The C<$response> is expected +to be a L instance or an object with an equivalent +interface. + =back +=head2 Session Expiration Handling + =over 4 =item B +This will mark the session for C<$id> as expired. This method is called +by the L C method. + +=item B + +This will check to see if the session C<$id> has been marked as +expired. + =item B +Given an session C<$id> this will return C if the session is +expired or return the C<$id> if it is not. + =back =head1 BUGS