Application State Using Netscape JavaScript & Cookies

Below is an example of Persistent Client State HTTP Cookie that can be used for Web Applications and Databases to maintain transactional state. The cookie is set and will expire in 24 hours (controlled in Javascript).

If you hit Set Cookie, then exit your browser, (because the cookie is in memory), the cookie will be placed in your cookies.txt file in your Netscape directory. You can view this file at the DOS prompt or any editor. You can then restart your browser and your cookie will remain (or just hit Continue to see the same result,but the cookie.txt file isn't updated)

If you then open your browser to http://geocities.datacellar.net/SiliconValley/Peaks/9111/cook2.html it will remember who you are from the cookie (at least for the next 24 hours).

       Your Name: 


Warning!! To see this Demonstration, you must use a Netscape 2.0 Browser or later that supports Javascript and cookies.

Yahoo! GeoCities Member Banner Exchange Info 
1