Merge pull request #3985 from owncloud/cookie-past2

apply @LukasReschke's cookie changes, hopefully finally fix #854
This commit is contained in:
Morris Jobke 2013-07-10 09:08:01 -07:00
commit e2a5af4b9e
1 changed files with 3 additions and 3 deletions

View File

@ -166,8 +166,8 @@ class Session implements Emitter {
unset($_COOKIE["oc_username"]); //TODO: DI
unset($_COOKIE["oc_token"]);
unset($_COOKIE["oc_remember_login"]);
setcookie("oc_username", null, -1);
setcookie("oc_token", null, -1);
setcookie("oc_remember_login", null, -1);
setcookie('oc_username', '', time()-3600, \OC::$WEBROOT);
setcookie('oc_token', '', time()-3600, \OC::$WEBROOT);
setcookie('oc_remember_login', '', time()-3600, \OC::$WEBROOT);
}
}