From e16eccb70475e6d275f573424aa0f0d9cb757d04 Mon Sep 17 00:00:00 2001
From: Guy Brand <gb@isis.u-strasbg.fr>
Date: Sat, 11 Oct 2008 18:14:58 +0200
Subject: [PATCH] Empty breadcrumbs on logout (see FS#979)

darcs-hash:20081011161458-19e2d-97001154886654be84d70b1b140743b124a1c763.gz
---
 inc/actions.php | 2 +-
 inc/auth.php    | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/inc/actions.php b/inc/actions.php
index 41e81e267..af2399983 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -383,7 +383,7 @@ function act_auth($act){
     // rebuild info array
     $INFO = pageinfo();
 
-    return 'login';
+    act_redirect($ID,'login');
   }
 
   return $act;
diff --git a/inc/auth.php b/inc/auth.php
index 19c7fb174..6c9ac9817 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -290,6 +290,8 @@ function auth_logoff(){
     unset($_SESSION[DOKU_COOKIE]['auth']['pass']);
   if(isset($_SESSION[DOKU_COOKIE]['auth']['info']))
     unset($_SESSION[DOKU_COOKIE]['auth']['info']);
+  if(isset($_SESSION[DOKU_COOKIE]['bc']))
+    unset($_SESSION[DOKU_COOKIE]['bc']);
   if(isset($_SERVER['REMOTE_USER']))
     unset($_SERVER['REMOTE_USER']);
   $USERINFO=null; //FIXME
-- 
GitLab