diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-07-09 16:46:35 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-07-09 16:46:35 +0200 |
commit | 9e9c323acdafa0a454a6a797480ba8e0c088c6c2 (patch) | |
tree | 8fd279f597609b3ffa6f982608b8c02b53f1ad5a | |
parent | d70d4f435ed17869cde2b0e841d701b1dc3d9802 (diff) | |
download | nextcloud-server-9e9c323acdafa0a454a6a797480ba8e0c088c6c2.tar.gz nextcloud-server-9e9c323acdafa0a454a6a797480ba8e0c088c6c2.zip |
Set path in cookie.
-rw-r--r-- | lib/user/session.php | 6 |
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); } } |