Commit | Line | Data |
---|---|---|
079b2fbe | 1 | package SessionExpiry; |
2 | use Catalyst | |
3 | qw/Session Session::Store::Dummy Session::State::Cookie Authentication/; | |
4 | ||
5 | use strict; | |
6 | use warnings; | |
7 | ||
8 | __PACKAGE__->config( | |
9 | 'Plugin::Session' => { | |
10 | ||
11 | expires => 20, | |
12 | expiry_threshold => 10, | |
13 | ||
14 | }, | |
15 | ||
16 | ); | |
17 | ||
18 | __PACKAGE__->setup; | |
19 | ||
20 | __PACKAGE__; | |
21 |