ASP 101 - Active Server Pages 101 - Web06
The Place ASP Developers Go!

Please visit our partners

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates

ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

ASP.NET version of "Cookie"

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!

Here's the zip file of the code (1.6 KB)!

Play with the running version.

Back to the "Cookie" sample


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers