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

What is the application pool?

0 Answers  


Are there resources online with tips on asp to asp.net conversions?

0 Answers  


What are the main components of the ADO object model? How are they used?

2 Answers   HCL, Syntax Softtech,


What are the disadvantages of view state / what are the benefits?

2 Answers   Siebel Systems,


What is shadowing?

2 Answers   Syntax Softtech,






Explain code snippet to register exception filters from controller?

0 Answers  


When a dropdownlist has been added by some records and it has been binded why it is not executing i'm facing this error pls help me ? if (is!pageposback) { arraylist books = new arraylist; books.add ("gone with the wind"); books.add ("rahulsriramprakash"); books.add ("vishal"); dropdowndisplay.datasource=books; dropdowndisplay.databind(); } The error is : 1) The dropdowndisplay does not exist.

5 Answers   Netsweeper,


Explain form level validation and field level validation?

0 Answers  


How can we pass info between 2 asp.net pages?

0 Answers  


Explain method to handle error using HttpError in Web API?

0 Answers  


How do we ensure view state has not tampered?

0 Answers  


What is the difference between session.abandon() vs clear()?

0 Answers  


Categories