summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-01-30 10:06:24 +0100
committerAndreas Gohr <andi@splitbrain.org>2009-01-30 10:06:24 +0100
commit85c6f7d0feda5eb33d300dcf19c9a09d56a2d0df (patch)
tree386a1f0954a341cf92901f3cd3f8781a19c9b6d6 /inc/auth.php
parentc5cfca618f9c11e8630e80a5ddbb0ff26d1af2e9 (diff)
downloadrpg-85c6f7d0feda5eb33d300dcf19c9a09d56a2d0df.tar.gz
rpg-85c6f7d0feda5eb33d300dcf19c9a09d56a2d0df.tar.bz2
fixed logoff cookie problem
Ignore-this: 53d4440e4bffdcf66330ffc6b2b3372a darcs-hash:20090130090624-7ad00-a6f6da5b1d42ac48cf4906e40addbd15e995125c.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php5
1 files changed, 2 insertions, 3 deletions
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;