From 66b563e4645ba3a4132a3474721a90555607df8a Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 30 Oct 2014 11:52:13 -0400 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index eda0c657bd..868907d22b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -483,6 +483,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}, [ -- 2.11.0