What method do you use to explicitly kill a users session?
Answer Posted / 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 View All Answers
Can we store object in viewstate?
What are custom controls?
Where would you use an ihttpmodule, and what are the limitations of any?
Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?
What is a 401 redirect?
Can the unique key be null?
What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
How to make paging concepts in datagrid in ASP.NET?
How can you handle exceptions in asp.net?
Where session id is stored?
What is repository pattern in mvc.net? : asp.net mvc
What are the different web pages?
Explain about consistent programming model in the .NET framework?
How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know
What is the difference between Session and response.Redirect?