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

What is the difference between stored procedure vs function?

788


Difference between web user control and web custom control?

689


What is session in asp.net?

715


What are sharepoint pages?

699


What is the function used for removing an event listener?

770


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

761


Define authentication and authorization.

851


What parameters can you pass in the url of the api?

863


what is AutoEventWireUp and what is the use of This property explain in details?

1359


What is the significance of finalize method in .net?

779


What is the significance of ASP.NET routing?

848


What is query string in asp.net?

781


What is special types forms

747


Explain the concept of event bubbling in ASP.NET?

814


From which base class all web forms are inherited?

717