summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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',