diff options
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/auth.php b/inc/auth.php index d7effdc9e..a71a5aa86 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -215,7 +215,9 @@ function auth_validateToken($token){ */ function auth_createToken(){ $token = md5(mt_rand()); + @session_start(); // reopen the session if needed $_SESSION[DOKU_COOKIE]['auth']['token'] = $token; + session_write_close(); return $token; } |