Difference between Session.Abandon() and Clear()?
Ask by Sushant Mishra
Updated 23 Sep 2020
Session.Abandon(): It destroys the current session by generating a Session_End event. It releases the SessionState object and its items to free the resources.
Session.Clear( ):It just clears the session data (gives a null value to the session) without Destroying it. Session.Clear still holds the SessionState and resources associated with it.
Session ID will remain the same in both of the cases till browser is not closed.