set cookie lifetime to 6 months
This commit is contained in:
parent
c6532906df
commit
ad585c3fec
1 changed files with 3 additions and 0 deletions
3
index.pl
3
index.pl
|
@ -818,6 +818,9 @@ post '/x/login' => sub {
|
||||||
my $user = $self->req->param('user');
|
my $user = $self->req->param('user');
|
||||||
my $password = $self->req->param('password');
|
my $password = $self->req->param('password');
|
||||||
|
|
||||||
|
# Keep cookies for 6 months
|
||||||
|
$self->session( expiration => 60 * 60 * 24 * 180 );
|
||||||
|
|
||||||
if ( $self->validation->csrf_protect->has_error('csrf_token') ) {
|
if ( $self->validation->csrf_protect->has_error('csrf_token') ) {
|
||||||
$self->render(
|
$self->render(
|
||||||
'login',
|
'login',
|
||||||
|
|
Loading…
Reference in a new issue