summaryrefslogtreecommitdiffstats
path: root/lib/user
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-07-09 15:00:36 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-07-09 15:00:36 +0200
commitd70d4f435ed17869cde2b0e841d701b1dc3d9802 (patch)
treea9d5762713aac3810db05feae264812fcc78d7f7 /lib/user
parentcc0965b9bca53d4c6e31aed76c8eedea1d65a5c1 (diff)
downloadnextcloud-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.php6
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);
}
}