Jump to content

Does one cookie just can set up one value for it?


xbl1

Recommended Posts

Hi,Does one cookie just can set up one value for it?when i want to use the cookie to store the value of user name and password, i need to createtwo cookies for them, Am i right.format;document.cookie = "name=value; expires=date; path=path; domain=domain; secure";

Link to comment
Share on other sites

You'll need to store several variables in one cookie value if you want more than one value per cookie. For example, loginInfo="username=Bob;password=goneFishing;". I'm just recently researching cookies (in PHP), but that much I do know. See More Information at http://support.microsoft.com/kb/306070.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...