What is the difference between Session.Abandon() and Session.Clear()?

 Posted by Vishalneeraj-24503 on 2/4/2015 | Category: ASP.NET Interview questions | Views: 2114 | Points: 40
Answer:

The major difference is that if we call Session.Abandon() , Session_End will be fired for InProc mode, and in the next request,Session_Start will be fired. Whereas Session.Clear() just clears the session data without killing it.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response