Session.Abandon
destroys the session as stated above so you should use this when logging someone out. I think a good use of Session.Clear
would be for a shopping basket on an ecommerce website. That way the basket gets cleared without logging out the user.
↧
Answer by Kasim Shafiq for In ASP.NET, when should I use Session.Clear() rather than Session.Abandon()?
↧