This patch makes it so that the expiry is not looked up in the underlying store when...
Adam Prime [Wed, 4 Nov 2009 21:38:49 +0000 (21:38 +0000)]
Probably not the most graceful way to do it, but it works.

lib/Catalyst/Plugin/Session.pm

index d1ab3ac..e82aa91 100644 (file)
@@ -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;
 }