From 09c2d803ca738992288c138eab41f35008e3e3df Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 3 Jun 2008 22:31:38 +0200 Subject: reopen the session for storing the auth token darcs-hash:20080603203138-7ad00-cce00e99b64c53b6ffa11748262a3a8c2cd1e37e.gz --- inc/auth.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inc/auth.php') 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; } -- cgit v1.2.3