summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Brand <gb@isis.u-strasbg.fr>2008-10-11 18:14:58 +0200
committerGuy Brand <gb@isis.u-strasbg.fr>2008-10-11 18:14:58 +0200
commite16eccb70475e6d275f573424aa0f0d9cb757d04 (patch)
tree9dd971904bb257952fedf8e7991a06d1e5092fd1
parent2f48496695a50adc68743bfbf1ac715e7b18711a (diff)
downloadrpg-e16eccb70475e6d275f573424aa0f0d9cb757d04.tar.gz
rpg-e16eccb70475e6d275f573424aa0f0d9cb757d04.tar.bz2
Empty breadcrumbs on logout (see FS#979)
darcs-hash:20081011161458-19e2d-97001154886654be84d70b1b140743b124a1c763.gz
-rw-r--r--inc/actions.php2
-rw-r--r--inc/auth.php2
2 files changed, 3 insertions, 1 deletions
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