ASP.NET Generic Cookie Utility Class

Sometimes the simplest things can be the most useful. Using cookies to persist form field values can often be preferable to using Session, Cache or other ASP.NET features. But cookie code can get ugly fast - littering each page with repetitive lines of code that can become difficult to maintain. Why not abstract the function away into a generic "cookie utility" class that can be accessed from anywhere in the application, with an absolute minimum of code?

By Peter Bromberg   Popularity  (5536 Views)