summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-02-10 11:02:57 +0100
committerAndreas Gohr <andi@splitbrain.org>2009-02-10 11:02:57 +0100
commitd48698469a572f77eb556c1723e84bccc5d4393d (patch)
tree04d1c42e822acdc6e2af440947b5e14bc178c4e8 /inc/auth.php
parent837acd38f15d1b968f5a96baa9af067ea7bab5ff (diff)
downloadrpg-d48698469a572f77eb556c1723e84bccc5d4393d.tar.gz
rpg-d48698469a572f77eb556c1723e84bccc5d4393d.tar.bz2
do not close session in auth_logoff FS#1519
Ignore-this: b30b94c67baa8a8916dd216424e9473c As auth_logoff is called very early for all not-logged in users it prevented writing the breadcrumbs and might have broken some other things relying on a open session at beginning of the script. auth_logoff now makes sure the session is open but will not close it. Additionally the session is now explicitly closed before a redirect. darcs-hash:20090210100257-7ad00-50470f18edb9fdbeb555fbf5d8a470a3b077915d.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/inc/auth.php b/inc/auth.php
index fa087e8f6..e1f9029a9 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -276,7 +276,7 @@ function auth_logoff($keepbc=false){
global $INFO, $ID;
global $auth;
- // reopen session
+ // make sure the session is writable (it usually is)
@session_start();
if(isset($_SESSION[DOKU_COOKIE]['auth']['user']))
@@ -300,9 +300,6 @@ function auth_logoff($keepbc=false){
if($auth && $auth->canDo('logoff')){
$auth->logOff();
}
-
- // close session again
- session_write_close();
}
/**