This new method actually uses an object to handle the cookies.
It makes things much neater and while it's a little different, I
think you'll quickly see how much easier it is to deal with then
the old way.
To keep it simple and not clutter the script up with form work, this
sample plays with one fixed cookie name. If you want a
version attached to a form let me know and I'll see what I can do, but
this version does the cookie stuff and almost nothing else so you can get
a feel for cookies by themselves. (For form stuff see our Form Handler Sample.)
Anyway... give it a whirl and let me know
if this implementation gives you any trouble. Just don't call me if you're
having any other ASP.NET problems... I'm still learning this stuff too!