JavaScript Cookies | JavaScriptSource

JavaScript Cookies

Joseph Myers May 1, 2006

"JavaScript functions makeCookie(), readCookie(), and rmCookie() provide the best solution for writing, reading, and removing cookies. Any JavaScript application now has the capability to access cookies and utilize all of their magical properties. The cookie functions provide high performance, and each one provides return values precisely indicating the success or failure of the requested operation. They allow you to use relative expiration dates, to easily let a cookie expire in a few seconds, hours, days, or years from the present time, or to create a ""session cookie"" that safely vanishes when the user quits the browser. The cookie functions also allow you to choose the domain and path for cookies, or to create secure cookies that are accessible only through encrypted pages."

Leave a Response

(1 comment)

I like it

Agus_peok Sep 30, 2012