xbl1 Posted November 2, 2007 Share Posted November 2, 2007 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 More sharing options...
Jesdisciple Posted November 3, 2007 Share Posted November 3, 2007 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 More sharing options...
xbl1 Posted November 3, 2007 Author Share Posted November 3, 2007 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.Thanks a lot. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.