summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-03 21:45:55 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-03 21:45:55 +0100
commitad585c3fec9c937f41b60f484aee6aa5fd65c573 (patch)
treed66430cc143679fc5f8bdcee46c13046c067a807
parentc6532906df51acb736509e399a24bb32fb536c45 (diff)
set cookie lifetime to 6 months
-rwxr-xr-xindex.pl3
1 files changed, 3 insertions, 0 deletions
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',