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 login controls and forms authentication?

553


What are the security types in ASP/ASP.NET? Different Authentication modes?

569


I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al���Ƴ�Â��ƴ�Ã��ƶ�Å�� al���Ƴ�Â��ƴ�Ã��ƶ�Å�� Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.

1442


What is the difference between custom web user control and a custom web server control?

513


Why is xap important?

612






What is http session state?

528


What is http post action?

563


What are the memory-mapped files?

532


What are the main differences between asp and asp.net?

534


What is asp net_sessionid?

647


What is the difference between user control an custom control?

623


Which object is used to encapsulate the state of the client and the browser in ASP.NET?

597


Can you nest updatepanel within each other?

565


How will create assesblies at run time?

563


How would you turn off cookies on one page of your website?

546