From: Jesse Sheidlower Date: Tue, 24 May 2005 02:37:40 +0000 (+0000) Subject: C::P::S::FastMmap: expire cookie at same time as session X-Git-Tag: v0.01~30 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session-State-Cookie.git;a=commitdiff_plain;h=964ca63e5fa434580af99a08e3ed8af65b685bb7;hp=0850f14b361b7473a299fe05b1dc70fe56fecdbd C::P::S::FastMmap: expire cookie at same time as session --- diff --git a/Changes b/Changes index f98f61b..fca9030 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for Perl extension Catalyst::Plugin::Session::FastMmap. +0.10 Mon May 23 22:35:41 EDT 2005 + - expire cookie at same time as session (Jesse Sheidlower) 0.09 Mon Apr 18 22:00:00 2005 - s/output/body/ (Frank Wiegand) diff --git a/FastMmap.pm b/FastMmap.pm index fd814db..547c62c 100644 --- a/FastMmap.pm +++ b/FastMmap.pm @@ -53,7 +53,7 @@ sub finalize { if ( my $cookie = $c->request->cookies->{session} ) { $set = 0 if $cookie->value eq $sid; } - $c->response->cookies->{session} = { value => $sid } if $set; + $c->response->cookies->{session} = { value => $sid, expires => "+" . $self->config->{session}->{expires} . "s" } if $set; if ( $c->config->{session}->{rewrite} ) { my $finder = URI::Find->new( sub {