From: Mike Rylander Date: Thu, 30 Oct 2014 15:52:13 +0000 (-0400) Subject: LP#1248636: Clear session at OPAC logout X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7a84b2907b969ec90bd88f671e4308f73e8e3944;p=evergreen%2Fpines.git LP#1248636: Clear session at OPAC logout When the user explicitly logs out, clear the session on the server side. Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index e0ddf7587a..f9afad443a 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -459,6 +459,12 @@ sub load_logout { # while logged in, go ahead and clear it out. $self->clear_anon_cache; + $U->simplereq( + 'open-ils.auth', + 'open-ils.auth.session.delete', + $self->cgi->cookie(COOKIE_SES) + ); + return $self->generic_redirect( $redirect_to || $self->ctx->{home_page}, [