From ad585c3fec9c937f41b60f484aee6aa5fd65c573 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Sun, 3 Mar 2019 21:45:55 +0100
Subject: [PATCH] set cookie lifetime to 6 months

---
 index.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/index.pl b/index.pl
index 829c4d8f..f8b2084a 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',
-- 
GitLab