From: Adam Prime Date: Wed, 4 Nov 2009 21:38:49 +0000 (+0000) Subject: This patch makes it so that the expiry is not looked up in the underlying store when... X-Git-Tag: v0.29~3^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session.git;a=commitdiff_plain;h=cb104024fec84bd23646b85314cc0d83fef092b1 This patch makes it so that the expiry is not looked up in the underlying store when a session has not yet committed to the store. Probably not the most graceful way to do it, but it works. --- diff --git a/lib/Catalyst/Plugin/Session.pm b/lib/Catalyst/Plugin/Session.pm index d1ab3ac..e82aa91 100644 --- a/lib/Catalyst/Plugin/Session.pm +++ b/lib/Catalyst/Plugin/Session.pm @@ -375,6 +375,11 @@ sub reset_session_expires { my $exp = $c->calculate_initial_session_expires; $c->_session_expires( $exp ); + # + # since we're setting _session_expires directly, make load_session_expires + # actually use that value. + # + $c->_tried_loading_session_expires(1); $c->_extended_session_expires( $exp ); $exp; }