Sessions seem to time out too soon

J

John Kotuby

Hi all,

In a private Web Application (VS2008 VB.NET) the users were complaining that
the default session time was too short, because if they stop for a phone
call or any distraction, they get logged out of what they were doing. I
tried to increase the Timeout to 90 minutes. I just now walked away from my
computer for about 20 minutes and I came back to find out my session had
timed out.

Here is part of the Web.config that I thought would extend the session
timeout.

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlCommandTimeout="180" cookieName="PC.NET_SessionId" timeout="90"/>

There is only one web.config file in the root of the site.

What am I doing wrong?

Thanks for any help...
 
A

Anthony Jones

John Kotuby said:
Hi all,

In a private Web Application (VS2008 VB.NET) the users were complaining that
the default session time was too short, because if they stop for a phone
call or any distraction, they get logged out of what they were doing. I
tried to increase the Timeout to 90 minutes. I just now walked away from my
computer for about 20 minutes and I came back to find out my session had
timed out.

Here is part of the Web.config that I thought would extend the session
timeout.

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlCommandTimeout="180" cookieName="PC.NET_SessionId" timeout="90"/>

There is only one web.config file in the root of the site.

What am I doing wrong?


The worker process will also have a idle timeout set in the application pool
settings. It defaults to 20 minutes.
Hence if all users end on the phone all at the same time for 20 minutes then
despite the session timeout still having some time left the whole app will
have been torn down.

In reality this situation only really happens in testing, however since it
doesn't make sense to a have idle pool timeout less than the maximum session
timeout set for apps that run in it you should change it.
 
J

John Kotuby

Thank you Anthony,

This did happen during testing.

However, at some loactions where the application is deployed on a local
Intranet it's entirely possible that at times there might be only one user
who will then experience a timeout at 20 minutes. Now I just have to find
out where to change the idle pool timeout.
 
A

Anthony Jones

John Kotuby said:
Thank you Anthony,

This did happen during testing.

However, at some loactions where the application is deployed on a local
Intranet it's entirely possible that at times there might be only one user
who will then experience a timeout at 20 minutes. Now I just have to find
out where to change the idle pool timeout.

In IIS7 select the App pool in the tree pane and click Advanced Settings...
In the Process Model category you will see Idle Time-out

In IIS6 open properties dialog on App Pool on Performance Tab there is an
Idle timeout box.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top