Session.Abandon() destroys the session and the Session_OnEnd event Session_OnEnd .
Session.Clear() simply removes all values (contents) from the object. session with the same key is still alive .
So, if you use Session.Abandon() , you will lose this particular session and the user will get a new session key . You can use it, for example, when the user logs out .
Use Session.Clear() if you want the user to remain in the same session (if you do not want him to translate the example) and reset all his data related to the session.
BrainCoder Aug 18 2018-12-18T00: 00Z
source share