aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-07-09 16:46:35 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-07-09 16:46:35 +0200
commit9e9c323acdafa0a454a6a797480ba8e0c088c6c2 (patch)
tree8fd279f597609b3ffa6f982608b8c02b53f1ad5a
parentd70d4f435ed17869cde2b0e841d701b1dc3d9802 (diff)
downloadnextcloud-server-9e9c323acdafa0a454a6a797480ba8e0c088c6c2.tar.gz
nextcloud-server-9e9c323acdafa0a454a6a797480ba8e0c088c6c2.zip
Set path in cookie.
-rw-r--r--lib/user/session.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/user/session.php b/lib/user/session.php
index e98fb5ee4d5..9a6c669e935 100644
--- a/lib/user/session.php
+++ b/lib/user/session.php
@@ -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);
}
}