diff --git a/inc/actions.php b/inc/actions.php
index 41e81e2675692ea725b2852bf7e3f6404d8d2d7b..af2399983bbb215d8252e14a13bd2d54f35fd7d8 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 19c7fb174b04ba6c7a4ce72e2218fa7142994c19..6c9ac9817f1fa5c74de4197701cdabdee927325d 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