diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-07-09 15:00:36 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-07-09 15:00:36 +0200 |
commit | d70d4f435ed17869cde2b0e841d701b1dc3d9802 (patch) | |
tree | a9d5762713aac3810db05feae264812fcc78d7f7 /lib/user | |
parent | cc0965b9bca53d4c6e31aed76c8eedea1d65a5c1 (diff) | |
download | nextcloud-server-d70d4f435ed17869cde2b0e841d701b1dc3d9802.tar.gz nextcloud-server-d70d4f435ed17869cde2b0e841d701b1dc3d9802.zip |
apply @LukasReschke's cookie changes, hopefully finally fix #854
Diffstat (limited to 'lib/user')
-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 cf93d9593af..e98fb5ee4d5 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", null, -1); - setcookie("oc_token", null, -1); - setcookie("oc_remember_login", null, -1); + setcookie('oc_username', '', time()-3600); + setcookie('oc_token', '', time()-3600); + setcookie('oc_remember_login', '', time()-3600); } } |