Fixed C::P::Session::State::Cookie expires behavior
[catagits/Catalyst-Plugin-Session-State-Cookie.git] / lib / Catalyst / Plugin / Session / State / Cookie.pm
index 23402db..b65430f 100644 (file)
@@ -5,6 +5,7 @@ use strict;
 use warnings;
 
 use NEXT;
+use Catalyst::Utils ();
 
 our $VERSION = "0.02";
 
@@ -50,8 +51,7 @@ sub make_session_cookie {
         }
     }
     else {
-        # XXX: FIXME, Session dropped __expires
-        $cookie->{expires} = $c->session->{__expires};
+        $cookie->{expires} = $c->session_expires;
     }
 
     return $cookie;