Skip to content Skip to sidebar Skip to footer

How To Reverse The Effect Of The Following Execution By Using Javascript?

Possible Duplicate: How to remove a cookie by using Javascript? javascript:void(document.cookie=”PREF=ID=20b6e4c2f44943bb:U=4bf292d46faad806:TM=1249677602:LM=1257919388:S=odm0

Solution 1:

To remove a cookie, do the same thing but set an expire date in the past:

In this case:

document.cookie=”PREF=ID=20b6e4c2f44943bb:U=4bf292d46faad806:TM=1249677602:LM=1257919388:S=odm0Ys-53ZueXfZG; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain=.google.com”

The key is the addition of expires=Thu, 01 Jan 1970 00:00:01 GMT;

Post a Comment for "How To Reverse The Effect Of The Following Execution By Using Javascript?"