| Back to Questions Page |
| Question |
Can we change the session timeout in ASP.NET, if yes then
how and from where? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Mehsam |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
The session in my application often gets expired.
I've tried giving session timings both
in the page directive of the page
as well as  |
0 | Saminathan |
| |
| |
| Answer |
Hi All,
Have u set any time limit in the web.config file if not
then set like this
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>  |
0 | Sabeer Pasha |
| |
| |
| Answer |
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  |
0 | Narinder Mahindru |
| |
| |
|
|
| |
| Answer |
Yes ofcourse. There are few steps which needs to be
followed. Pls. visit this link to have a beautiful
explaination...
http://support.yessoftware.com/kb_article.asp?
s_keyword=.gif&s_prod=&kb_articlesPageSize=10&s_type=&order_
by=Freshness&s_cat=&article_id=74
Aziz...  |
0 | Mohammad Aziz |
| |
| |
| Answer |
yes go to change webconfig session timeout.  |
0 | Guest |
| |
| |
| Answer |
to change session timeout write this code in your web.config
file
<sessionState mode="InProc" timeout="60">
it will increase your session expire time .  |
0 | Narendra |
| |
| |
| Answer |
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 .  |
0 | Narendra Soni |
| |
| |
|
| |
|
Back to Questions Page |