Multiple choice technology web technology

How can you kill a user session?

  1. Session.Clear

  2. Session.delete

  3. Session.terminate

  4. Session.abondon

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Session.Abandon() is the correct method to terminate a user's session in ASP.NET. This method ends the current session and clears all session data. Session.Clear() only removes session values but keeps the session alive, Session.delete and Session.terminate are not valid ASP.NET methods. The misspelling 'abondon' in the option matches the actual method name's common misspelling, but Session.Abandon() is the correct syntax.