We will re-use the cookie example, and use sessions instead. It should be noted that the main difference between a database, files, memory cache and session is where the state is stored.18 Responses to Session and Cookies in ASP.NET MVC? What is the difference between ASP session and ASP.NET session?In Asp, the session is cookie dependent . That is, Asp session only function when browser supports cookies. Using cookies. ASP.NET creates a special cookie named ASP.NETSessionId automatically when a session collection is used.Note: There is no difference between Clear and RemoveAll. Some differences between ASP Session and ASP.
null). string encryptedTicket FormsAuthentication.Encrypt(ticket) HttpCookie cookie new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket) Email codedump link for Losing Session between Classic ASP and ASP.NET.