What method do you use to explicitly kill a user s session?

Showing Answers 1 - 3 of 3 Answers

ramesh

  • Aug 18th, 2005
 

session.abandon-to kill all 
 
session.remove-to spec item

  Was this answer useful?  Yes

Sathiyavathi

  • Mar 28th, 2006
 

Hi,

  We can use

   Session.Abandon();

   Session.Kill();

  Was this answer useful?  Yes

mrp100461

  • Aug 5th, 2009
 

Session.Contents.Remove( variable ) is the session fuction to remove one item from the contents

<% 
  Session("myName") = " "
  Session.Contents.Remove("myName")
%>
Session.Contents.RemoveAll will remove all contents
<% 
  Session("myName") = " "
  Session.Contents.Remove("myName")
%>
Session.Abandon the session state to be released when the server finishes processing the current page.
<% Session.Abandon %>

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions