473,396 Members | 2,004 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,396 software developers and data experts.

Session Timeout problems-web.confg session state and IIS session s

I have two websites setup on an IIS Server. In the web.config files i have
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="120" />
<!-- GLOBALIZATION
This section sets the globalization settings of the application.
-->

Inside of IIS, when you click on the website, you view the properties for a
website, click the Configuration button on the Virtual Directory Tab and
click Options to see the Application configuration, Session State is enabled
with a timeout of 90000 mintues.

The browser session for one website works fine, the browser session for the
other website times out earlier than 120 minutes. How can I troubleshoot
the timeouts ?
Apr 10 '07 #1
4 4744
re:
Session State is enabled with a timeout of 90000 mintues.
The maximum session timeout period allowed is 1440 minutes.

Try setting a value equal or lower than 1440.


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/
===================================
"RobHK" <Ro***@discussions.microsoft.comwrote in message
news:AF**********************************@microsof t.com...
>I have two websites setup on an IIS Server. In the web.config files i have
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="120" />
<!-- GLOBALIZATION
This section sets the globalization settings of the application.
-->

Inside of IIS, when you click on the website, you view the properties for a
website, click the Configuration button on the Virtual Directory Tab and
click Options to see the Application configuration, Session State is enabled
with a timeout of 90000 mintues.

The browser session for one website works fine, the browser session for the
other website times out earlier than 120 minutes. How can I troubleshoot
the timeouts ?


Apr 10 '07 #2
"RobHK" <Ro***@discussions.microsoft.comwrote in message
news:AF**********************************@microsof t.com...
Session State is enabled with a timeout of 90000 mintues.
You're trying to set a Session timeout of over 62.5 days...?

I have to ask - is this a typo...?
Apr 10 '07 #3
The configuration item you are looking at in IIS is for Classic ASP only -
and has no effect on ASP.NET apps. You need to use the item in your
web.config.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"RobHK" wrote:
I have two websites setup on an IIS Server. In the web.config files i have
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="120" />
<!-- GLOBALIZATION
This section sets the globalization settings of the application.
-->

Inside of IIS, when you click on the website, you view the properties for a
website, click the Configuration button on the Virtual Directory Tab and
click Options to see the Application configuration, Session State is enabled
with a timeout of 90000 mintues.

The browser session for one website works fine, the browser session for the
other website times out earlier than 120 minutes. How can I troubleshoot
the timeouts ?
Apr 10 '07 #4


"Mark Rae" wrote:
"RobHK" <Ro***@discussions.microsoft.comwrote in message
news:AF**********************************@microsof t.com...
Session State is enabled with a timeout of 90000 mintues.

You're trying to set a Session timeout of over 62.5 days...?

I have to ask - is this a typo...?
No typo.. I'm just trying to "deactive" the timeout by making it as long
as possible. From another post .. this setting is for Classis ASP only and
not for .net . Someone else had said 1440 is the maximum so I will try that
just to see what happens. the only timeout I want to be happening is the
one from the web.config at 120 minutes.
Apr 11 '07 #5

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

Similar topics

7
by: Tyler | last post by:
I have an asp page that is producing a report via some heavy SQL queries with dynamically chosen parameters from the users of the page. I can run it on my development server (takes about 35...
1
by: Edward | last post by:
Front End: Access 2000 Project (.adp) Back End: SQL Server 2000 I have an application that keeps timing out. I have opened the DataLink properties in the front end (File, Connection, Advanced...
5
by: Dave | last post by:
Hi All, Can anyone suggest a reliable solution to php redirect?: header("Location: $redir_url"); if the above times out in $timeout seconds header("Location: $alt_redir_url"); Many thanks,
5
by: supercooper | last post by:
I am downloading images using the script below. Sometimes it will go for 10 mins, sometimes 2 hours before timing out with the following error: Traceback (most recent call last): File...
4
by: rowan | last post by:
I'm writing a driver in Python for an old fashioned piece of serial equipment. Currently I'm using the USPP serial module. From what I can see all the serial modules seem to set the timeout when...
2
by: teddysnips | last post by:
One of our clients has reported a problem. Everything was working fine on Monday, but since Tuesday all is going wrong. The sysadmin assures me that there have been no changes to the network, or...
10
by: Zytan | last post by:
I have a TcpClient. I set the read/write timeouts at 1 minute (in milliseconds). I get a NetworkStream from it and confirm the timeouts still exist. I do a NetworkStream.Write() and then a...
2
by: Zytan | last post by:
I just had the problem occur again, with NetworkStream.Write() doing its thing with a timeout... and it just sits and waits and waits and waits... it never times outs. So, I shut the server down...
1
by: Andrew Cooper | last post by:
I've got a report that is using an ObjectDataSource to populate its data. The problem is that the report takes longer than 30 seconds to generate so it times out. If I were using an SQLDataSource...
0
by: Andrew Cooper | last post by:
I posted this in the aspnet newsgroup but thought I might have more luck with an answer here. I'd really appreciate any help I can get. Thanks. I've got a report that is using an...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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,...

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.