XCookie

The XCookie object forms a conveniently packaged JavaScript cookie-handling utility. It provides methods to write, read, refresh, delete, check for presence and support, plus auto-incrementation of stored numeric values.

Cookie duration can be specified in days or seconds.

Cookie names can contain spaces.

The encapsulated format eliminates the need for a mess of stand-alone functions.

Just install the source file and you're empowered with an effective extension to the language.

Demonstration of some available functions at work
SHOW COOKIE AVAILABILITY
SET TEST COOKIE
READ TEST COOKIE
CLEAR TEST COOKIE
SET SESSION COOKIE
CLEAR SESSION COOKIE
SET/BUMP COUNTER COOKIE
CLEAR COUNTER COOKIE
CLEAR ALL COOKIES SET FOR THE CURRENT PATH
CLEAR ALL COOKIES SET FOR THE '/' PATH
Currently readable cookies:
DOWNLOAD SCRIPT FILE