summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/auth.php b/inc/auth.php
index f9d48d0d6..19c7fb174 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -281,6 +281,9 @@ function auth_logoff(){
global $INFO, $ID;
global $auth;
+ // reopen session
+ @session_start();
+
if(isset($_SESSION[DOKU_COOKIE]['auth']['user']))
unset($_SESSION[DOKU_COOKIE]['auth']['user']);
if(isset($_SESSION[DOKU_COOKIE]['auth']['pass']))
@@ -300,6 +303,9 @@ function auth_logoff(){
if($auth && $auth->canDo('logoff')){
$auth->logOff();
}
+
+ // close session again
+ session_write_close();
}
/**