Cookies and JavaScript - TechRepublic
General discussion
August 2, 2001 at 07:22 AM
mr. origami

Cookies and JavaScript

by mr. origami . Updated 24 years, 9 months ago

Syntax for a “cookie dictionary” or “name-value pairs”? Here’s an example of what I need. I have 3 form buttons labeled Bob, Bill, and Betty. I have a cookie named myCookie. With ASP, I can click a button and write:
Response.Cookies(“myCookie”)(“User”)=(“Bob”)
or change it to
Response.Cookies(“myCookie”)(“User”)=(“Bill”)
Still just 1 cookie. How do I do this with JavaScript?

This discussion is locked

All Comments