stevegray
4Penny.net
Points: 64759

5/19/2026 10:03:35 AM

Cookies - Setting and Reading

* This article, and all our great .NET Development documentation, Is available on the .NET Development menu

Introduction

Cookies are one of the simplest ways to persist small pieces of data between requests in ASP.NET, yet they’re often misunderstood or implemented inconsistently. Whether you’re storing user preferences, tracking the last selected database, or managing lightweight session helpers, cookies give you a fast, reliable mechanism without involving server resources. This article walks through the essentials—how to set a cookie, how to read it safely, and how to delete it when it’s no longer needed—using clean, practical VB.NET examples you can drop directly into your application.

4Penny.net
Version: All
Section: .NET Development
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3