| ★ wanayoo — archive 1999 http://developer.netscape.com/docs/examples/javascript/cookies/writecookie.html | Nouvelle recherche | Portail wanayoo |
Set a cookie:
You can set a cookie by specifying the Cookie name, its value and expiration if any.
If no expiry is set, it is available for current browser session only. You will be able
to read the cookie without
closing the current session.
If the expiry is set for a cookie, cookie gets updated automatically in the cookie's file once you exit the current session. You will be able to later on read the cookie until it gets expired.
Delete a cookie:
Specify the Cookie name to be deleted and click Delete Cookie.
View
the complete source code.
Send me your feedback.
For the latest technical information on Sun-Netscape Alliance products, go to: http://developer.iplanet.com
For more Internet development resources, try Netscape TechSearch.
