rhgiant — 2012-01-06T09:37:46-05:00 — #1
I'd like to know if document.cookie is still considered a good way to set cookies.
dnordstrom — 2012-01-06T18:11:31-05:00 — #2
Results lead me to links such as this one, which suggests it is indeed legit. If this was a bad practice, posters would generally say so.
Perhaps more interesting, I also found this recent blog post which is a good read. I have yet to read all of it, but it discusses security issues related to the subject.
paul_wilkins — 2012-01-08T06:06:55-05:00 — #3
A while ago Quirksmode performed a good study of handling cookies across different web browsers, resulting in the some useful functions to manage them.
Cleaned up versions of those functions can be found at the cookie handling functions page.
rhgiant — 2012-01-08T09:05:45-05:00 — #4
paul_wilkins — 2012-01-08T16:01:05-05:00 — #5
Yes indeed, given that you're mindful of situations where someone not having scripting enabled might interfere with things.