Oh, wait…not those kind of cookies (mmm, now I’m hungry for cookies).
The script.aculo.us wiki has some code for working with cookies in JavaScript. I’ve extended it a bit to allow for other options when setting the cookies. Here’s how to use it:
I am Brandon Keepers, and I work at GitHub on making Open Source more
approachable, effective, and ubiquitous. I tend to think like an engineer, work like an artist, dream like
an astronaut, love like a human, and sleep like a baby.