Bugzilla – Attachment 8553 Details for
Bug 7810
C4/Auth.pm - on plack restart session is undefined
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7810 - C4/Auth.pm - on pack restart session is undefined
Bug-7810---C4Authpm---on-pack-restart-session-is-u.patch (text/plain), 1.08 KB, created by
Dobrica Pavlinusic
on 2012-03-23 08:58:33 UTC
(
hide
)
Description:
Bug 7810 - C4/Auth.pm - on pack restart session is undefined
Filename:
MIME Type:
Creator:
Dobrica Pavlinusic
Created:
2012-03-23 08:58:33 UTC
Size:
1.08 KB
patch
obsolete
>From 96faa0a9f6ec72a92da36ce8360aea24ee4d648a Mon Sep 17 00:00:00 2001 >From: Dobrica Pavlinusic <dpavlin@rot13.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7810
:
8553
|
10120