Tuesday, 5 November 2013

Session in ASP.Net

Difference on Session.Clear() and Session.Abandon()

      Use Session.Clear() to clear all the keys in the session. User session is still valid. Also, this will not invoke Session_End eventhandler in Global.asax.
Session.Abandon() remove the session altogether and it will execute Session_End eventhandler.

No comments:

Post a Comment