diff options
author | andi <andi@splitbrain.org> | 2005-05-12 22:41:07 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-05-12 22:41:07 +0200 |
commit | 7009a5a9c3eec40fc7ae8aba3932be002d157b98 (patch) | |
tree | fe4898a33662223346a4cc86ba658b22ce4cd181 /inc | |
parent | 7a4ea97b742c2b548ca55aad5f926fb11f9c86cf (diff) | |
download | rpg-7009a5a9c3eec40fc7ae8aba3932be002d157b98.tar.gz rpg-7009a5a9c3eec40fc7ae8aba3932be002d157b98.tar.bz2 |
fixed logout #319
darcs-hash:20050512204107-9977f-94e56edf182e0194f0965052126ee88778d0bbeb.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/auth.php b/inc/auth.php index 8afb02138..14e7230d0 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -76,7 +76,7 @@ function auth_login($user,$pass,$sticky=false){ $pass = PMA_blowfish_encrypt($pass,auth_cookiesalt()); $cookie = base64_encode("$user|$sticky|$pass"); if($sticky) $time = time()+60*60*24*365; //one year - setcookie('DokuWikiAUTH',$cookie,$time); + setcookie('DokuWikiAUTH',$cookie,$time,'/'); // set session $_SESSION[$conf['title']]['auth']['user'] = $user; @@ -176,7 +176,7 @@ function auth_logoff(){ unset($_SESSION[$conf['title']]['auth']['info']); unset($_SERVER['REMOTE_USER']); $USERINFO=null; //FIXME - setcookie('DokuWikiAUTH','',time()-3600); + setcookie('DokuWikiAUTH','',time()-600000,'/'); } /** |