The ASP Session.Abandon Method is used to destroy a session of the user. Generally , It destroys the object which are stored in the Session object. If we do not call the Abandon method explicitly, the server destroys these objects when the session times out.
Note: When this method is called, the current Session object is not deleted until all the script on the current page have been processed. It means that it is possible to access session variables on the same page as the call to Abandon, but not from another Web page.
Parameter Value: This method does not contain any value.
Return Value: It does not return any value.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.