Set path in cookie.

This commit is contained in:
Thomas Tanghus 2013-07-09 16:46:35 +02:00
parent d70d4f435e
commit 9e9c323acd
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', '', time()-3600);
setcookie('oc_token', '', time()-3600);
setcookie('oc_remember_login', '', time()-3600);
setcookie('oc_username', '', time()-3600, \OC::$WEBROOT);
setcookie('oc_token', '', time()-3600, \OC::$WEBROOT);
setcookie('oc_remember_login', '', time()-3600, \OC::$WEBROOT);
}
}