473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Sessions seem to time out too soon

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...
Aug 28 '08 #1
3 3702
"John Kotuby" <jk*******@comcast.netwrote in message
news:ur**************@TK2MSFTNGP05.phx.gbl...
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.
--
Anthony Jones - MVP ASP/ASP.NET
Aug 28 '08 #2
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.

"Anthony Jones" <An*@yadayadayada.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
"John Kotuby" <jk*******@comcast.netwrote in message
news:ur**************@TK2MSFTNGP05.phx.gbl...
>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.
--
Anthony Jones - MVP ASP/ASP.NET


Aug 28 '08 #3
"John Kotuby" <jk*******@comcast.netwrote in message
news:uz**************@TK2MSFTNGP02.phx.gbl...
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.


--
Anthony Jones - MVP ASP/ASP.NET

Aug 28 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shawn Wilson | last post by:
Hi, I've been having some trouble with sessions. I have a pw-protected section of my website where members can log in and use tools to edit their websites. The problem is sessions seem to...
6
by: Rob Meade | last post by:
Hi all, At work we have 2 servers in a cluster for our web apps. One problem we have experienced (along with many others!) - is that if a user is logged into one of the applications on server...
19
by: Jeff Clark | last post by:
Hiya! How would i get this number? thanks!
2
by: Lenn | last post by:
Hello, This requirement might seem strange to someone out there, but here it's We need to make sure only certain number of users can be logged in the site at the same time. Is there any way to...
9
by: AndersBj | last post by:
Hi all, I have a web application that uses State Server for session handling. The web application randomly loses all session variables. The sessions are not always lost, sometimes I can use the...
4
by: ctclibby | last post by:
Hi All Seem to be getting zombie sessions. /tmp/sess_ exist and are owned by daemon. I am guessing and these could come from brower crashes, networks gone down ... etc ... even from stuff that...
22
by: magic_hat60622 | last post by:
Hi all. I've got an app that dumps a user id into a session after successful login. the login page is http://www.mydomain.com/login.php. If the user visits pages on my site without the www (i.e.,...
8
by: Chuck Anderson | last post by:
I've instituted a sessions based scheme on my web site to combat hot linking to my images. When someone requests a page at my site, I set a session variable. I then use htaccess to redirect *all*...
3
by: nse111 | last post by:
I use PHP sessions to pass a value from one page to another. In my 1st page I pass a value called 'id' to my 2nd page using a hyperlink. explained: <a href="abc.php?id=<?php...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.