-
28 Mar 2011 4:14 AM #1
[FIXED-EXTJSIV-409] Ext.util.Cookies.clear doesn't remove a session cookie
[FIXED-EXTJSIV-409] Ext.util.Cookies.clear doesn't remove a session cookie
Ext.util.Cookies.set uses path "/" by default.
Ext.util.Cookies.clear doesn't set a path so it doesn't remove a session cookie.
This override fixes this issue:
99% of the times people will use the path "/" for cookies anyway.Code:Ext.util.Cookies.clear = function(name) { if(Ext.util.Cookies.get(name)){ document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/"; } };
There are several reports about this issue but the team choose to ignore them:
http://www.sencha.com/forum/showthre...t=cookie+clear
http://www.sencha.com/forum/showthre...560#post462560
http://www.sencha.com/forum/showthre...-does-not-work
http://www.sencha.com/forum/showthre...ear-is-Invalid
http://jupiter.mcom.fr/~clucas/blog/...clear-a-cookie
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN] [OPEN-EXTJSIV-294] multiple 'var' from set and get functions in Ext.util.Cookies
By dolittle in forum Ext:BugsReplies: 0Last Post: 23 Mar 2011, 3:35 PM -
[CLOSED] Ext.util.Cookies.clear() not working
By dorgan in forum Ext 3.x: BugsReplies: 8Last Post: 20 May 2010, 8:17 AM -
[CLOSED][3.??] Ext.util.Cookies.clear is Invalid
By 3gwind in forum Ext 3.x: BugsReplies: 2Last Post: 28 Apr 2010, 8:29 AM -
Deleting a cookie via util.Cookies.clear('cookieName')
By Elijah in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 23 Mar 2010, 12:25 PM -
[CLOSED][3.??] Ext.util.Cookies.clear does not work
By Chods in forum Ext 3.x: BugsReplies: 4Last Post: 16 Feb 2010, 11:01 AM


Reply With Quote