From 1e866646d50b19b59ee9bc22a8c293a91c4e8176 Mon Sep 17 00:00:00 2001 From: andi Date: Sun, 26 Jun 2005 20:41:05 +0200 Subject: small fix for separate cookie patch darcs-hash:20050626184105-9977f-34d4928d5c8dab19b2cc799ff3b43637303995e8.gz --- inc/auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/auth.php') 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,'/'); } /** -- cgit v1.2.3