Can we change the session timeout in ASP.NET, if yes then
how and from where?

Answer Posted / narendra soni

to change session timeout write this code in your web.config
file

<sessionState mode="InProc" timeout="60">

or you can also set this in global.asax file as

Session.Timeout = 60 ; // in Session.Start() event

it will increase your session expire time .

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the various authentication mechanisms in asp.net.

733


Which method is used to perform all validation at the page level?

759


What are the different properties of server control that exists?

815


Explain the role of global.asax?

763


What is server side session?

755


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

801


What events will occur when a page is loaded?

844


Explain the different types of directives in .net?

730


What are sessions in asp net?

772


What is use of Master Page in ASP.NET web pages?

845


Explain about solution explorer window?

826


If you are using components in your application, how can you handle exceptions raised in a component?

2333


How is it possible for .NET to support many languages?

518


How does a content page differ from a master page?

751


Can master pages be nested?

719