Fixed bug with updating session when expiry_threshold is set
[catagits/Catalyst-Plugin-Session.git] / t / lib / SessionExpiry / Controller / Root.pm
index 1e4b676..e23cd12 100644 (file)
@@ -20,3 +20,9 @@ sub session_expires : Global {
     $c->session;
     $c->res->output($c->session_expires);
 }
+
+sub update_session : Global {
+    my ($self, $c) = @_;
+    $c->session->{foo} ++;
+    $c->res->output($c->session->{foo});
+}