Bug #9466: Fix clearing session for certain logout types
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 23 Dec 2010 08:46:46 +0000 (01:46 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 23 Dec 2010 08:47:19 +0000 (01:47 -0700)
The first time through login.php after logout, the session will still
exist (even though is_auth might be false). This is the check we need to
perform to ensure that the user is properly logged out.

horde/login.php

index 59efa11..97ff012 100644 (file)
@@ -88,7 +88,7 @@ case Horde_Core_Auth_Application::REASON_SESSIONIP:
 case Horde_Core_Auth_Application::REASON_BROWSER:
 case Horde_Auth::REASON_LOGOUT:
     /* Don't show these logout reasons more than once. */
-    if (!$is_auth) {
+    if (!$registry->getAuth()) {
         $logout_reason = null;
     }
     break;