Changes

Understanding JavaScript Cookies

31 bytes added, 20:16, 11 June 2007
Removing a Cookie
</pre>
== Removing a Cookie by Setting the Expiration Date ==
The only way to remove a cookie from a client system is to set the expiration date of the cookie to a date that has already passed. To do this simply use the JavaScript Date Object to get today's date, set that Date back a month or so and then re-write the cookie using that revised date: