When you think ASP, think...
Recent Articles
All Articles
ASP.NET Articles [1.x] [2.0]
ASPFAQs.com
Message Board
Related Web Technologies
User Tips!
Coding Tips
Search

Sections:
Book Reviews
Sample Chapters
Commonly Asked Message Board Questions
Headlines from ASPWire.com
JavaScript Tutorials
MSDN Communities Hub
Official Docs
Security
Stump the SQL Guru!
Web Hosts
XML Info
Information:
Advertise
Feedback
Author an Article
Technology Jobs



















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
ASP ASP.NET ASP FAQs Message Board Feedback ASP Jobs
Print this page.

Software Developer/Programmer - Interview NOW! Need 10 People!
Next Step Systems
US-IL-Des Plaines

Justtechjobs.com Post A Job | Post A Resume

Published: Saturday, May 15, 1999

Bug fix for the "Creating a Customized Home Page" article.
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".

- continued -

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!


Windows Internet Technology | ASP.NET [1.x] [2.0] | ASPMessageboard.com | ASPFAQs.com | Advertise | Feedback | Author an Article

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers