Quantcast
Viewing latest article 1
Browse Latest Browse All 5

Answer by Kasim Shafiq for In ASP.NET, when should I use Session.Clear() rather than Session.Abandon()?

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.


Viewing latest article 1
Browse Latest Browse All 5

Trending Articles