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

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

532


Can I read the hard disk serial # of the client computer using asp.net?

554


Is asp.net a programming language?

531


Is session server side or client side?

531


Why do we use asp.net?

584






Define page output caching?

572


What is autopostback true?

605


What are the modes of updation in an updatepanel?

553


Write some code using interfaces, virtual methods, and an abstract class`

1577


What are the ways of preserving data on a Web Form in ASP.NET?

616


What is the parent class of all web server control?

537


What is the difference between cookie and session?

500


List the types of authentication supported by asp.net?

523


What are server side controls?

526


What is the difference between localization and globalization?

558