LP#1248636: Clear session at OPAC logout
authorMike Rylander <mrylander@gmail.com>
Thu, 30 Oct 2014 15:52:13 +0000 (11:52 -0400)
committerBen Shum <bshum@biblio.org>
Wed, 5 Nov 2014 21:21:13 +0000 (16:21 -0500)
When the user explicitly logs out, clear the session on the server side.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm

index eda0c65..868907d 100644 (file)
@@ -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},
         [