Skip to content
Snippets Groups Projects
Commit 7009a5a9 authored by andi's avatar andi
Browse files

fixed logout #319

darcs-hash:20050512204107-9977f-94e56edf182e0194f0965052126ee88778d0bbeb.gz
parent 7a4ea97b
No related branches found
No related tags found
No related merge requests found
......@@ -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,'/');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment