Cookie Handler class - Creating a Custom Membership Provider and Membership User utilizing a Data Set Table Adapter - Step 11
When we log in to the site, we optionally set a Remember Me
cookie. This cookie is checked each time the Master Page is
loaded, so that if the user is not logged in, they are
auto-logged into the web site. Below are our cookie handling
classes:
Our AppCookie.vb class is a generic
handler for all cookies. Our SSSCookie.vb class is
specifically for the current application.