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

Answer Posted / narinder mahindru

By default session time out is 20 minutes but one can
change it. there are two ways to change the sessiontime out
in asp.net that is:-


1) from web config. file by setting the session timot
element eg.
<sessionstate timeout="60"/>

or
2) by doing programtically eg.
session.timeout=60

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of event bubbling in ASP.NET?

587


What is the extension of master page in asp.net?

553


What is Web API Routing?

609


How to find last error which occurred?

543


Explain what is an assembly?

562






What is enableviewstatemac in asp net?

599


How can u debug your .net application?

587


Diff between web user control and web custom control?

506


What are the differences between the response.write() and response.output.write()?

539


Is asp.net different from asp? If yes, explain how?

498


What are the 3 types of web?

510


What is the difference between trace and debug in asp.net?

625


Why web api is better than wcf?

561


What is %20 in a url?

546


What is session in web technology?

526