Fix tests
Tomas Doran [Sun, 15 Jul 2012 17:34:47 +0000 (18:34 +0100)]
lib/Catalyst/Plugin/Session.pm

index 20f6ee3..11d0adc 100644 (file)
@@ -105,6 +105,11 @@ sub finalize_headers {
     # fix cookie before we send headers
     $c->_save_session_expires;
 
+    # Force extension of session_expires before finalizing headers, so a pos
+    # up to date. First call to session_expires will extend the expiry, subs
+    # just return the previously extended value.
+    $c->session_expires;
+
     return $c->maybe::next::method(@_);
 }