diff --git a/index.pl b/index.pl
index 829c4d8fb69ff905217c12a7007f568f32e945fd..f8b2084a62bec45e5ca7396c4b3ccc14a776b188 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',