Kill a users session explicitly - State Management System - Session.Abondon()

Q.  To kill a users session explicitly which of the following will you use?
- Published on 16 Jun 15

a. Session.Close()
b. Session.End()
c. Session.Abondon()
d. Session.Discard()

ANSWER: Session.Abondon()
 
The Abandon method destroys all the objects stored in a session object and releases their resources. If we don't call this explicitly the server destroys this object when the session times out.
 

    Discussion

  • Sagar   -Posted on 15 Feb 16
    Good questions

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)