Tighten up session time for mods/admins
This commit is contained in:
parent
901d1ddb7a
commit
cc14be0022
|
@ -104,6 +104,8 @@ sub startup($self) {
|
|||
# Begin routing
|
||||
my $r = $self->routes->under(sub ($c) {
|
||||
$c->session(expires => time + 31536000);
|
||||
$c->session(expires => time + 3600) if $c->is_mod;
|
||||
$c->session(expires => time + 1800) if $c->is_admin;
|
||||
|
||||
$c->session(author => 'Anonymous') unless $c->session('author');
|
||||
|
||||
|
|
Loading…
Reference in a new issue