From 204f055c7e993308f6dcae64b59bf71568ad915e Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 27 Apr 2009 13:56:53 +0000 Subject: [PATCH] clear the cookie rather than setting it to false --- deluge/ui/web/js/Deluge.Login.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/web/js/Deluge.Login.js b/deluge/ui/web/js/Deluge.Login.js index 9fec0e58a..49708a787 100644 --- a/deluge/ui/web/js/Deluge.Login.js +++ b/deluge/ui/web/js/Deluge.Login.js @@ -114,7 +114,7 @@ Copyright: if (session) { Deluge.Client.web.delete_session(session, { success: function(result) { - Deluge.UI.cookies.set("session", false); + Deluge.UI.cookies.clear("session"); this.show(); }, scope: this @@ -132,12 +132,12 @@ Copyright: this.loginForm.items.get('password').setRawValue(''); this.hide(); } else { - Deluge.UI.cookies.set("session", false); + Deluge.UI.cookies.clear("session"); this.show(); } }, failure: function(result) { - Deluge.UI.cookies.set("session", false); + Deluge.UI.cookies.clear("session"); this.show(); }, scope: this