★ wanayoo — archive 1999 http://developer.netscape.com/docs/examples/javascript/cookies/writecookie.htmlNouvelle recherche | Portail wanayoo



Set or Delete a cookie

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.

Cookie name:

Cookie value:

Cookie expiry:

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.


Copyright © 1999 Netscape Communications Corporation.
This site powered by: Netscape Enterprise Server and Netscape Compass Server.