Multipe Cookies
-
Use array = document.cookie.split("=") to split a cookie's
records
into an array.
-
Then, use a for loop to iterate through the array.
Deleting Cookies
-
Set the expire date to a date/time before now.
-
Use with the multiple cookies information above to delete all cookies.
Cookies again.
Want more?
These scripts were adapted from JavaScript for the World Wide Web, 3rd
Edtion, by TomNegrino and Dori Smith. The book is a good entry read,
and it is less than twenty bucks. They also have sample code on the
web site, linked above.
echoecho's cookie
tutorial is also good.
Lab
Home
Internet II: Day 4