473,503 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session timeout in IIS and web.config, which overwrites which?

By default, IIS is configured to timeout a session in 20 minutes,
which can be changed through the IIS config window.

I use InProc sessionState mode. I can also set the session timeout in
web.config. So here is my question:

If IIS setting has a session timeout value of 20 minutes, but my
web.config setting has a session timeout of 30 minutes, will the
session time out in 20 minutes or in 30 minutes?

Thank you.
Jun 27 '08 #1
9 19626
the IIS session setting is for asp only, not asp.net

-- bruce (sqlwork.com)
"an***********@yahoo.com" wrote:
By default, IIS is configured to timeout a session in 20 minutes,
which can be changed through the IIS config window.

I use InProc sessionState mode. I can also set the session timeout in
web.config. So here is my question:

If IIS setting has a session timeout value of 20 minutes, but my
web.config setting has a session timeout of 30 minutes, will the
session time out in 20 minutes or in 30 minutes?

Thank you.
Jun 27 '08 #2
On Apr 23, 12:02 pm, bruce barker
<brucebar...@discussions.microsoft.comwrote:
the IIS session setting is for asp only, not asp.net

-- bruce (sqlwork.com)

"antonyliu2...@yahoo.com" wrote:
By default, IIS is configured to timeout a session in 20 minutes,
which can be changed through the IIS config window.
I use InProc sessionState mode. I can also set the session timeout in
web.config. So here is my question:
If IIS setting has a session timeout value of 20 minutes, but my
web.config setting has a session timeout of 30 minutes, will the
session time out in 20 minutes or in 30 minutes?
Thank you.
Ha, thank you very much. No wonder, from my series of tests, my
timeout setting in web.config always outlives the IIS session setting.
I searched for MSDN documentation about what you said, but could not
find it.
Jun 27 '08 #3
On Apr 23, 12:02 pm, bruce barker
<brucebar...@discussions.microsoft.comwrote:
the IIS session setting is for asp only, not asp.net

-- bruce (sqlwork.com)

"antonyliu2...@yahoo.com" wrote:
By default, IIS is configured to timeout a session in 20 minutes,
which can be changed through the IIS config window.
I use InProc sessionState mode. I can also set the session timeout in
web.config. So here is my question:
If IIS setting has a session timeout value of 20 minutes, but my
web.config setting has a session timeout of 30 minutes, will the
session time out in 20 minutes or in 30 minutes?
Thank you.
I looked into the asp.net configuration setting console, and notice
that we can also set the session timeout there. So, if I have session
timeout value of 20 minutes in this asp.net configuration setting
console, but in my web.config, I set this value to be 30 minutes.
Which one will take effect?
Jun 27 '08 #4
re:
!If IIS setting has a session timeout value of 20 minutes, but my
!web.config setting has a session timeout of 30 minutes, will the
!session time out in 20 minutes or in 30 minutes?

30 minutes.

ASP.NET configuration settings override IIS configuration settings.


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/
======================================
<an***********@yahoo.comwrote in message news:a1**********************************@s50g2000 hsb.googlegroups.com...
By default, IIS is configured to timeout a session in 20 minutes,
which can be changed through the IIS config window.

I use InProc sessionState mode. I can also set the session timeout in
web.config. So here is my question:

If IIS setting has a session timeout value of 20 minutes, but my
web.config setting has a session timeout of 30 minutes, will the
session time out in 20 minutes or in 30 minutes?

Thank you.

Jun 27 '08 #5
re:
!I looked into the asp.net configuration setting console, and notice
!that we can also set the session timeout there. So, if I have session
!timeout value of 20 minutes in this asp.net configuration setting
!console, but in my web.config, I set this value to be 30 minutes.
!Which one will take effect?

The ASP.NET configuration tool will update your web.config to whatever value you set.

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/
======================================
<an***********@yahoo.comwrote in message news:84**********************************@f36g2000 hsa.googlegroups.com...
On Apr 23, 12:02 pm, bruce barker
<brucebar...@discussions.microsoft.comwrote:
>the IIS session setting is for asp only, not asp.net

-- bruce (sqlwork.com)

"antonyliu2...@yahoo.com" wrote:
By default, IIS is configured to timeout a session in 20 minutes,
which can be changed through the IIS config window.
I use InProc sessionState mode. I can also set the session timeout in
web.config. So here is my question:
If IIS setting has a session timeout value of 20 minutes, but my
web.config setting has a session timeout of 30 minutes, will the
session time out in 20 minutes or in 30 minutes?
Thank you.

I looked into the asp.net configuration setting console, and notice
that we can also set the session timeout there. So, if I have session
timeout value of 20 minutes in this asp.net configuration setting
console, but in my web.config, I set this value to be 30 minutes.
Which one will take effect?

Jun 27 '08 #6
On Apr 23, 2:14 pm, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
re:
!I looked into the asp.net configuration setting console, and notice
!that we can also set the session timeout there. So, if I have session
!timeout value of 20 minutes in this asp.net configuration setting
!console, but in my web.config, I set this value to be 30 minutes.
!Which one will take effect?

The ASP.NET configuration tool will update your web.config to whatever value you set.

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/
======================================
Muchas gracious, senor. But I am confused by two responses of
yours. :-)

Your first response says:

ASP.NET configuration settings override IIS configuration settings.

You meant web.config setting will override whatever setting we make
through IIS config console, right?

And here is your second response, shown below:

The ASP.NET configuration tool will update your web.config to whatever
value you set.

Do you mean that my web.config's session timeout value will be changed
by the IIS config tool to whatever value we set through the IIS config
tool?

Please clarify.
Jun 27 '08 #7
re:
!You meant web.config setting will override whatever setting we make
!through IIS config console, right?

Not all settings, but settings which only apply to ASP.NET.

Other IIS settings ( like for PHP apps or HTML pages ),
retain the IIS default configuration, unless mapped to the ASP.NET ISAPI dll.

re:
!Do you mean that my web.config's session timeout value will be changed
!by the IIS config tool to whatever value we set through the IIS config tool?

No. I said just the opposite.

For ASP.NET apps, settings which apply only to ASP.NET
will override IIS default configuration settings.

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/
======================================
<an***********@yahoo.comwrote in message news:c0**********************************@b1g2000h sg.googlegroups.com...
On Apr 23, 2:14 pm, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
re:
!I looked into the asp.net configuration setting console, and notice
!that we can also set the session timeout there. So, if I have session
!timeout value of 20 minutes in this asp.net configuration setting
!console, but in my web.config, I set this value to be 30 minutes.
!Which one will take effect?

The ASP.NET configuration tool will update your web.config to whatever value you set.

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/
======================================
Muchas gracious, senor. But I am confused by two responses of
yours. :-)

Your first response says:

ASP.NET configuration settings override IIS configuration settings.

You meant web.config setting will override whatever setting we make
through IIS config console, right?

And here is your second response, shown below:

The ASP.NET configuration tool will update your web.config to whatever
value you set.

Do you mean that my web.config's session timeout value will be changed
by the IIS config tool to whatever value we set through the IIS config
tool?

Please clarify.
Jun 27 '08 #8
On Apr 23, 4:55 pm, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
re:
!You meant web.config setting will override whatever setting we make
!through IIS config console, right?

Not all settings, but settings which only apply to ASP.NET.

Other IIS settings ( like for PHP apps or HTML pages ),
retain the IIS default configuration, unless mapped to the ASP.NET ISAPI dll.

re:
!Do you mean that my web.config's session timeout value will be changed
!by the IIS config tool to whatever value we set through the IIS config tool?

No. I said just the opposite.

For ASP.NET apps, settings which apply only to ASP.NET
will override IIS default configuration settings.

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/
======================================
OK, good know. So, with regard to session timeout, web.config will
override the session timeout setting of the IIS config tool, right?
Jun 27 '08 #9
re:
!>OK, good know. So, with regard to session timeout, web.config will
!>override the session timeout setting of the IIS config tool, right?

Only for ASP.NET apps... :-)


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/
======================================
<an***********@yahoo.comwrote in message news:25**********************************@x41g2000 hsb.googlegroups.com...
On Apr 23, 4:55 pm, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
re:
!You meant web.config setting will override whatever setting we make
!through IIS config console, right?

Not all settings, but settings which only apply to ASP.NET.

Other IIS settings ( like for PHP apps or HTML pages ),
retain the IIS default configuration, unless mapped to the ASP.NET ISAPI dll.

re:
!Do you mean that my web.config's session timeout value will be changed
!by the IIS config tool to whatever value we set through the IIS config tool?

No. I said just the opposite.

For ASP.NET apps, settings which apply only to ASP.NET
will override IIS default configuration settings.

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/
======================================
OK, good know. So, with regard to session timeout, web.config will
override the session timeout setting of the IIS config tool, right?
Jun 27 '08 #10

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

Similar topics

0
1168
by: Joseph | last post by:
I have a web method called WM1 running on my website. Whenever the web page refresh WM1 is being called. Each time WM1 is called the session timeout is reset, which we don't want the reset to...
4
15445
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...
1
2044
by: Samuel Stanojevic | last post by:
- I'm using .NET Framework 1.1. I just noticed that whenever I change the value of Session.Timeout (no matter which aspx page this happens on), at the end of the request, the 'Session_End'...
5
2843
by: Tim W. | last post by:
Folks. In a B2B Procurement system we've created, we got following Session-Issue: Configuration: We are using IIS 6.0 and added SQL-Based-Sessions in web.config with a timeout of 240 minutes...
8
5468
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...
2
9670
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...
2
4889
by: Aryan | last post by:
Hi, I have put my session related parameter in web.config under system.web, given below is the code for same. <system.web> <sessionState timeout ="1440" mode ="InProc" /> </system.web> this...
3
2182
by: metsie | last post by:
Hi all, How can I set the session TimeOut from inside the Code? Also is there a way to make the session variables Expires after a number of minutes of inactivity. i.e. I want to make the session...
3
590
by: trullock | last post by:
Hi, I want to test some session timeout code ive written but im getting a few problems. I want to reduce the session timeout to 1min so i dont have to wait around for 20 min to see if my code...
0
7204
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,...
0
7091
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
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5586
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,...
0
4680
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...
0
3171
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...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.