by Christopher Miller
For some reason when you went to the edit page, if all of the fields were not filled in, some of the cookies would not save. What is ever stranger, every time you went back to the edit page, if you did not fill in each field, a cookie would one-by-one "disappear".
I have been perplexed about this bug for some time now and have not come up with any reasonable explanation or solution. Until now...
I have recently received an email from a fellow ASP developer, Laura Morin, with a fix to this problem. She came up with the solution of storing the cookies with multiple keys, or "sub items". It seems to work. Here is an example:
Response.Cookies ("MyHomePage")("MyTableColor") = "#FFFFFF"
Response.Cookies ("MyHomePage")("MyBGColor") = "#000000"
Response.Cookies ("MyHomePage")("MyTextColor") = "#000000"
Notice how the name of the cookie does not change, only the sub item.
I hope this helps. Enjoy!