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.
Liked By
Write Answer
Difference between Session.Abandon() and Clear()?
Join MindStick Community
You have need login or register for voting of answers or question.
Sushant Mishra
18-Jun-2017Session.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.