From ad585c3fec9c937f41b60f484aee6aa5fd65c573 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 3 Mar 2019 21:45:55 +0100 Subject: set cookie lifetime to 6 months --- index.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'index.pl') diff --git a/index.pl b/index.pl index 829c4d8..f8b2084 100755 --- a/index.pl +++ b/index.pl @@ -818,6 +818,9 @@ post '/x/login' => sub { my $user = $self->req->param('user'); 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') ) { $self->render( 'login', -- cgit v1.2.3