diff options
author | andi <andi@splitbrain.org> | 2005-06-26 20:41:05 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-06-26 20:41:05 +0200 |
commit | 1e866646d50b19b59ee9bc22a8c293a91c4e8176 (patch) | |
tree | 6a6998bf316863ce9b19f42e76e883a0f486a061 /inc/auth.php | |
parent | e65afed4ffc61cc7ab0823a5ac0e7476e5158522 (diff) | |
download | rpg-1e866646d50b19b59ee9bc22a8c293a91c4e8176.tar.gz rpg-1e866646d50b19b59ee9bc22a8c293a91c4e8176.tar.bz2 |
small fix for separate cookie patch
darcs-hash:20050626184105-9977f-34d4928d5c8dab19b2cc799ff3b43637303995e8.gz
Diffstat (limited to 'inc/auth.php')
-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 30936d3d4..c86bd3b49 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -17,7 +17,7 @@ // load the the auth functions require_once(DOKU_INC.'inc/auth/'.$conf['authtype'].'.php'); - if (!defined('DOKU_COOKIE')) define('DOKU_COOKIE', md5($_SERVER['PHP_SELF'])); + if (!defined('DOKU_COOKIE')) define('DOKU_COOKIE', 'DW'.md5($conf['title'])); // some ACL level defines define('AUTH_NONE',0); @@ -183,7 +183,7 @@ function auth_logoff(){ unset($_SESSION[$conf['title']]['auth']['info']); unset($_SERVER['REMOTE_USER']); $USERINFO=null; //FIXME - setcookie(DOKU_COOKIE,'',time()-3600,'/'); + setcookie(DOKU_COOKIE,'',time()-600000,'/'); } /** |