473,756 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session Timeout Problem

The web.config in my asp.net application, running on Server2003, has this
entry: <sessionState mode="InProc" timeout="40".
In IIS the asp.net State Management timeout setting is 40 for my website.
In IIS the virtual directory configuration setting is set to 40.

The application still timesout at 20 minutes.

What else can I do?

--
Regards,
Gary Blakely
May 31 '07 #1
14 2304
set the timeout on page load, see if that helps.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"GaryDean" <Ga******@newsg roups.nospamwro te in message
news:eG******** ******@TK2MSFTN GP03.phx.gbl...
The web.config in my asp.net application, running on Server2003, has this
entry: <sessionState mode="InProc" timeout="40".
In IIS the asp.net State Management timeout setting is 40 for my website.
In IIS the virtual directory configuration setting is set to 40.

The application still timesout at 20 minutes.

What else can I do?

--
Regards,
Gary Blakely


May 31 '07 #2
you probably have asp.net configured to shutdown after 20 mins of idle.
this causes a recycle which loses all session data.

if you use inproc session, you will sometimes lose session data due to a
recycle, so your site should be coded to handle this case.

-- bruce (sqlwork.com)

GaryDean wrote:
The web.config in my asp.net application, running on Server2003, has this
entry: <sessionState mode="InProc" timeout="40".
In IIS the asp.net State Management timeout setting is 40 for my website.
In IIS the virtual directory configuration setting is set to 40.

The application still timesout at 20 minutes.

What else can I do?
May 31 '07 #3
Hi Gary,

As you mentioned that you've used three session setting, then what's the
actual session mode you use now, inproc one? I suggeset you create a
simplified application and use inproc session to verify the behavior.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

May 31 '07 #4
Could you be a little more specific?
I have asp.net configured to shutdown after 20 mins? where? how?
"site should be coded to handle this case? how?

--
Regards,
Gary Blakely
"bruce barker" <no****@nospam. comwrote in message
news:uu******** ******@TK2MSFTN GP06.phx.gbl...
you probably have asp.net configured to shutdown after 20 mins of idle.
this causes a recycle which loses all session data.

if you use inproc session, you will sometimes lose session data due to a
recycle, so your site should be coded to handle this case.

-- bruce (sqlwork.com)

GaryDean wrote:
>The web.config in my asp.net application, running on Server2003, has this
entry: <sessionState mode="InProc" timeout="40".
In IIS the asp.net State Management timeout setting is 40 for my website.
In IIS the virtual directory configuration setting is set to 40.

The application still timesout at 20 minutes.

What else can I do?

May 31 '07 #5
Steven,
you ask "what's the actual session mode you use now" not sure I understand
your question. In my original post I stated the session settings in my
web.config and the setting is IIS. every conceivable setting I know of says
40 minutes but the application timesout after 20 minutes.

--
Regards,
Gary Blakely
"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:MZ******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Gary,

As you mentioned that you've used three session setting, then what's the
actual session mode you use now, inproc one? I suggeset you create a
simplified application and use inproc session to verify the behavior.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.

May 31 '07 #6
re:
!every conceivable setting I know of says
!40 minutes but the application timesout after 20 minutes.

Including the Forms Authentication timeout ( if you're using that ? ).
*That* defaults to 20 minutes, too.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"GaryDean" <Ga******@newsg roups.nospamwro te in message
news:O$******** ******@TK2MSFTN GP04.phx.gbl...
Steven,
you ask "what's the actual session mode you use now" not sure I understand your question. In my
original post I stated the session settings in my web.config and the setting is IIS. every
conceivable setting I know of says 40 minutes but the application timesout after 20 minutes.

--
Regards,
Gary Blakely
"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:MZ******** ******@TK2MSFTN GHUB02.phx.gbl. ..
>Hi Gary,

As you mentioned that you've used three session setting, then what's the
actual session mode you use now, inproc one? I suggeset you create a
simplified application and use inproc session to verify the behavior.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


May 31 '07 #7
re:
!I have asp.net configured to shutdown after 20 mins? where? how?

20 minutes is the default.
If you don't have a timeout configured...yo u'll get a 20 minute timeout.

To get back to the problem, are you using Forms Authentication ?
Could *that* be set to 20 minutes ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"GaryDean" <Ga******@newsg roups.nospamwro te in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
Could you be a little more specific?
I have asp.net configured to shutdown after 20 mins? where? how?
"site should be coded to handle this case? how?

--
Regards,
Gary Blakely
"bruce barker" <no****@nospam. comwrote in message news:uu******** ******@TK2MSFTN GP06.phx.gbl...
>you probably have asp.net configured to shutdown after 20 mins of idle. this causes a recycle
which loses all session data.

if you use inproc session, you will sometimes lose session data due to a recycle, so your site
should be coded to handle this case.

-- bruce (sqlwork.com)

GaryDean wrote:
>>The web.config in my asp.net application, running on Server2003, has this entry: <sessionState
mode="InPro c" timeout="40".
In IIS the asp.net State Management timeout setting is 40 for my website.
In IIS the virtual directory configuration setting is set to 40.

The application still timesout at 20 minutes.

What else can I do?


May 31 '07 #8
I believe that timeout default is 30, but yes I also set the Forms
Authentication timout to 40.

--
Regards,
Gary Blakely
"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:%2******** *******@TK2MSFT NGP05.phx.gbl.. .
re:
!every conceivable setting I know of says
!40 minutes but the application timesout after 20 minutes.

Including the Forms Authentication timeout ( if you're using that ? ).
*That* defaults to 20 minutes, too.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"GaryDean" <Ga******@newsg roups.nospamwro te in message
news:O$******** ******@TK2MSFTN GP04.phx.gbl...
>Steven,
you ask "what's the actual session mode you use now" not sure I
understand your question. In my original post I stated the session
settings in my web.config and the setting is IIS. every conceivable
setting I know of says 40 minutes but the application timesout after 20
minutes.

--
Regards,
Gary Blakely
"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:MZ******* *******@TK2MSFT NGHUB02.phx.gbl ...
>>Hi Gary,

As you mentioned that you've used three session setting, then what's the
actual session mode you use now, inproc one? I suggeset you create a
simplified application and use inproc session to verify the behavior.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.



Jun 1 '07 #9
If you have set all the timeouts to 40, and the app is still losing the session variables
at 20, then either the app is recycling at 20 or the application pool is recycling at 20.

Have you attempted to set a different recycling threshold in the IIS Manager ?

Also, have you tried to use State Server, instead of InProc ?

State Server, as does SQL Server, gets around the loss of
session variables due to Application/App Pool recycling.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"GaryDean" <Ga******@newsg roups.nospamwro te in message
news:eb******** ********@TK2MSF TNGP05.phx.gbl. ..
>I believe that timeout default is 30, but yes I also set the Forms Authentication timout to 40.

--
Regards,
Gary Blakely
"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:%2******** *******@TK2MSFT NGP05.phx.gbl.. .
>re:
!every conceivable setting I know of says
!40 minutes but the application timesout after 20 minutes.

Including the Forms Authentication timeout ( if you're using that ? ).
*That* defaults to 20 minutes, too.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
============== =============== =========
"GaryDean" <Ga******@newsg roups.nospamwro te in message
news:O$******* *******@TK2MSFT NGP04.phx.gbl.. .
>>Steven,
you ask "what's the actual session mode you use now" not sure I understand your question. In
my original post I stated the session settings in my web.config and the setting is IIS. every
conceivable setting I know of says 40 minutes but the application timesout after 20 minutes.

--
Regards,
Gary Blakely
"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:MZ****** ********@TK2MSF TNGHUB02.phx.gb l...
Hi Gary,

As you mentioned that you've used three session setting, then what's the
actual session mode you use now, inproc one? I suggeset you create a
simplified application and use inproc session to verify the behavior.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.



Jun 1 '07 #10

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

Similar topics

4
15468
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site | Properties | Configuration | Options | Enable Session State Session timeout 20 (3) within Global.asax.vb file - Session_Start subroutine can use Session.Timeout=x minutes or (4) within any web page, i.e., <web page>.aspx can use...
5
5289
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the sessionstate inproc mode and users are randomly losing their session. I do not believe it is happening across all users at one time. It seems to happen to different users at different times, but I am only going off heresay. The aspnet worker...
5
2083
by: Just D. | last post by:
Do we have any access to the Session object from a different Session? The idea is to save Session of a current user and then if he logs in again then return the Session back. It's not a problem to store, there is only one complicated object in this Session, but to get it on SessionStart to make a copy this is a problem. Maybe using Application or whatever? Or this data is divided and inaccessible anyway? Just D.
8
5497
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how all applications will use sessions and to insure that all application use this method, the session properties cannot be overriden. Within the sessionstate tags, the webadmin (upon my request)r emoved the property for timeout, hoping that...
17
5215
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be running continuously and refreshing once an hour. I there set timeout= 61 in <sessionState section and on my page it says <meta http-equiv="refresh" content="3600">. I also set timeout=120 in the <forms section of web.config to make sure
2
9694
by: Rajesh.jain25 | last post by:
Hi, I am facing a problem of automatic session timeout problem and automatic session_end event fired. Case1: As I have analyzed I get to know that the default session timeout is 20 in web.config, If I reassign the session timeout at login page other than the time which is defined at web.config(20 Min.) then automatic session_end (in global.aspx.cs) event fired. Why automatic this event is fired??
2
2014
by: Tomas Martinez | last post by:
Hi, Well, my problem is so simple as it says in the subjet but very frustrating also. I have a project and it is losing the session variables with each postback, so I downloaded from the web a project which used a session management dll to discover what was wrong in my project. This web project has two pages, one send to the other a variable with session state and the other changes this one, shown in a label, with each postback, well,...
2
1747
by: Orgil | last post by:
I'm using ASP 3.0 however there is ASP.NET, because I'm working an old site that is built in ASP 3.0. I hope you for getting any help for my problem from you. So, my site's sessions are empty before its timeout. I have searched and checked for long time around this problem, but I can't fix the problem yet. The session timeout is 20 minutes in IIS 5.1 by default. I didn't set the timeout as "session.timeout=10" in codes of VBScript
4
8141
by: thig95 | last post by:
Hi, I've got a web application written in ASP class with VBScript. We have a home grown conctact management system for my company that our users stay active in throughout the day. My problem lies with the continued timeout we sometimes experience. I have tried just about everything to allow an 8 hour timeout for this application. I've set the session timeout to 480 in IIS (running IIS 6 on windows 2k3 SE) and i've also tried coding it in...
6
3781
by: ChrisAtWokingham | last post by:
I have been struggling with unexpected error messages on an ASP.NET system, using SQL and C#. The application draws organisation charts, based on data stored in the SQL database. Some of the chart editing processes place a very heavy load on the server as the effects of the edit ripple through the organisation structure, requiring potentially large numbers of rows in one of the tables to be updated. (I have done it this way to make the more...
0
9462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10046
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9886
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9857
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7259
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6542
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.