From de998cce754a73341988441034e2649f3ded6c54 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 15 Jan 2008 08:11:12 +0000 Subject: [PATCH] Eine Session maximal acht Stunden inaktiv lassen. --- SL/Auth.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/Auth.pm b/SL/Auth.pm index 96514f188..cbd90bcdb 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -423,7 +423,7 @@ sub restore_session { $form = $main::form; $dbh = $self->dbconnect(); - $query = qq|SELECT *, (mtime < (now() - '24h'::interval)) AS is_expired FROM auth.session WHERE id = ?|; + $query = qq|SELECT *, (mtime < (now() - '8h'::interval)) AS is_expired FROM auth.session WHERE id = ?|; $cookie = selectfirst_hashref_query($form, $dbh, $query, $session_id); @@ -477,13 +477,13 @@ sub expire_sessions { WHERE session_id IN (SELECT id FROM auth.session - WHERE (mtime < (now() - '24h'::interval)))|; + WHERE (mtime < (now() - '8h'::interval)))|; do_query($main::form, $dbh, $query); $query = qq|DELETE FROM auth.session - WHERE (mtime < (now() - '24h'::interval))|; + WHERE (mtime < (now() - '8h'::interval))|; do_query($main::form, $dbh, $query); -- 2.20.1