From: Yuval Kogman Date: Mon, 14 Nov 2005 18:29:15 +0000 (+0000) Subject: Releng crap for Session::State::Cookie X-Git-Tag: v0.01~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session-State-Cookie.git;a=commitdiff_plain;h=724a61732700d4e8e7de83b3665c7611dafc204b Releng crap for Session::State::Cookie --- diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index 20d203b..2fb8e56 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -24,3 +24,6 @@ \#$ \b\.# ^..*\.sw[po]$ + +# prereq tests may fail due to optionals +99_prereq\.t$ diff --git a/lib/Catalyst/Plugin/Session/State/Cookie.pm b/lib/Catalyst/Plugin/Session/State/Cookie.pm index b0e18dd..ebe362b 100644 --- a/lib/Catalyst/Plugin/Session/State/Cookie.pm +++ b/lib/Catalyst/Plugin/Session/State/Cookie.pm @@ -89,6 +89,20 @@ stored on the client, and the session data needs to be stored on the server. This plugin stores the session ID on the client using the cookie mechanism. +=head1 METHODS + +=over 4 + +=item make_session_cookie + +Returns a hash reference with the default values for new cookies. + +=item update_session_cookie $hash_ref + +Sets the cookie based on C in the response object. + +=back + =head1 EXTENDED METHODS =over 4 @@ -122,7 +136,7 @@ The name of the domain to store in the cookie (defaults to current host) =back -=item CAVEATS +=head1 CAVEATS Sessions have to be created before the first write to be saved. For example: diff --git a/t/99_prereq.t b/t/99_prereq.t new file mode 100644 index 0000000..bcfb392 --- /dev/null +++ b/t/99_prereq.t @@ -0,0 +1,8 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use Test::Prereq::Build; +prereq_ok(); +