When I reference document.cookie , there is a long string of key=value;
pairs listed. I may have 100 hundred cookies on my hard drive.
However, most only have one key=value pair. Does the document.cookie
variable combine all cookie key=value pairs?
All of the examples I've seen discuss referencing a specific cookie. I
don't see how this is done.
Cookies are usually named by the domain. If I want to reference a
specific cookie, do I need to search for my key=value pair by parsing
the document.cookie string? If I have several key=value; pairs in one
cookie, must I continue parsing for those specific key=value; pairs?
Judging by most getCookie() functions I've seen, the above seems to be
the case. I can't just call a specific cookie. I must reference
document.cookie and search for my specific key=value pairs. However, I
may be going about it the wrong way. Please clarify.
Thanks,
Brett
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment