GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET 2.0
Go To First  |  Previous Question  |  Next Question 
 ASP.NET 2.0  |  Question 67 of 161    Print  
What method do you use to explicitly kill a user s session?

  
Total Answers and Comments: 4 Last Update: August 05, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 18, 2005 03:06:05   #1  
ramesh        

RE: What method do you use to explicitly kill a user s session?
session.abandon-to kill all

session.remove-to spec item

 
Is this answer useful? Yes | No
March 28, 2006 01:39:36   #2  
Sathiyavathi        

RE: What method do you use to explicitly kill a user s...

Hi

We can use

Session.Abandon();

Session.Kill();


 
Is this answer useful? Yes | No
June 23, 2009 08:05:06   #3  
kanika.84 Member Since: June 2009   Contribution: 2    

RE: What method do you use to explicitly kill a user s session?
Session.Abondon() method is used to kill a user's session.
 
Is this answer useful? Yes | No
August 05, 2009 06:14:27   #4  
mrp100461 Member Since: January 2008   Contribution: 11    

RE: What method do you use to explicitly kill a user s session?
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 >

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape