From 85c6f7d0feda5eb33d300dcf19c9a09d56a2d0df Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 30 Jan 2009 10:06:24 +0100 Subject: fixed logoff cookie problem Ignore-this: 53d4440e4bffdcf66330ffc6b2b3372a darcs-hash:20090130090624-7ad00-a6f6da5b1d42ac48cf4906e40addbd15e995125c.gz --- inc/auth.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'inc') diff --git a/inc/auth.php b/inc/auth.php index 26246ba1b..fa087e8f6 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -292,9 +292,9 @@ function auth_logoff($keepbc=false){ $USERINFO=null; //FIXME if (version_compare(PHP_VERSION, '5.2.0', '>')) { - setcookie(DOKU_COOKIE,'',time()-600000,DOKU_REL,($conf['securecookie'] && is_ssl()),true); + setcookie(DOKU_COOKIE,'',time()-600000,DOKU_REL,'',($conf['securecookie'] && is_ssl()),true); }else{ - setcookie(DOKU_COOKIE,'',time()-600000,DOKU_REL,($conf['securecookie'] && is_ssl())); + setcookie(DOKU_COOKIE,'',time()-600000,DOKU_REL,'',($conf['securecookie'] && is_ssl())); } if($auth && $auth->canDo('logoff')){ @@ -1001,7 +1001,6 @@ function auth_setCookie($user,$pass,$sticky) { }else{ setcookie(DOKU_COOKIE,$cookie,$time,DOKU_REL,'',($conf['securecookie'] && is_ssl())); } - // set session $_SESSION[DOKU_COOKIE]['auth']['user'] = $user; $_SESSION[DOKU_COOKIE]['auth']['pass'] = $pass; -- cgit v1.2.3