Added a failing test for a situation that occurs when you have a cookie for a session...
[catagits/Catalyst-Plugin-Session.git] / t / lib / SessionValid.pm
diff --git a/t/lib/SessionValid.pm b/t/lib/SessionValid.pm
new file mode 100644 (file)
index 0000000..17c640c
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/env perl
+
+package SessionValid;
+use Catalyst qw/Session Session::Store::Dummy Session::State::Cookie/;
+
+use strict;
+use warnings;
+
+__PACKAGE__->config->{'session'} = {
+    cookie_expires => 0,
+    expires => 1,
+};
+
+__PACKAGE__->setup;
+
+__PACKAGE__;
+