Jump to content

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


xbl1
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...