From 96faa0a9f6ec72a92da36ce8360aea24ee4d648a Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 23 Mar 2012 09:54:25 +0100 Subject: [PATCH] Bug 7810 - C4/Auth.pm - on pack restart session is undefined So we shouldn't try to delete it. This produces application error instead of redirection to login page. I had similar problems with CGI, especially when session in browser is still active, and one on filesystem or database is already expired. --- C4/Auth.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 0b737e7..8c15aa4 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -690,7 +690,7 @@ sub checkauth { elsif ( $lasttime < time() - $timeout ) { # timed logout $info{'timed_out'} = 1; - $session->delete(); + $session->delete() if $session; C4::Context->_unset_userenv($sessionID); #_session_log(sprintf "%20s from %16s logged out at %30s (inactivity).\n", $userid,$ip,(strftime "%c",localtime)); $userid = undef; -- 1.7.2.5