What method do you use to explicitly kill a users session?

Answers were Sorted based on User's Feedback



What method do you use to explicitly kill a users session?..

Answer / jeyaram thangaponnan

Session.Abandon()

Is This Answer Correct ?    23 Yes 2 No

What method do you use to explicitly kill a users session?..

Answer / aadesh kumar

You can dump (Kill) the session yourself by calling the method Session.Abandon.
ASP.NET automatically deletes a user's Session object, dumping its contents, after it has been idle for a configurable timeout interval. This interval, in minutes, is set in the <SESSIONSTATE>section of the web.config file. The default is 20 minutes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

How do you manage session in ASP and ASP.NET ?

2 Answers   Cap Gemini, Microsoft,


How to send a DataReader as a parameter to a remote client ?

0 Answers   Digital GlobalSoft,


How do you handle unhandled exceptions in ASP.NET?.

3 Answers  


Your ASP.NET application displays sales data on a page. You want to improve performance by holding the page in memory on the server for one hour. You want to ensure that the page is flushed from memory after one hour, and that the page is re-created when the next request for the page is received. What should you do? A . Initialize a new instance of the Cache class in the Application.Start event handler. B . Initialize a new instance of the Timer class in the Page.Load event handler. C . Set the Duration attribute of the OutputCache directive in the page. D . In the Web.config file, set the timeout attribute of the sessionState element.

5 Answers   ADITI, Syntax Softtech,


Can we use multiple web.config files in an sigle appliction?

3 Answers   IBS,






What are the different session state management options available in asp.net?

0 Answers  


Are cookies stored on server or client?

0 Answers  


The technical part was on ASP.Net only of web services.

1 Answers   Symphony,


How do you use a custom validator? When might you want to use one?

3 Answers   Infosys,


What is the extension of master page in asp.net?

0 Answers  


What are standard controls?

0 Answers  


How many classes can a single .NET DLL contain?

14 Answers   Siebel Systems,


Categories