473,386 Members | 1,706 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,386 software developers and data experts.

Problem with Session.Timeout in ASP Classic

6
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 our logon script session.timeout=480 but our users still timeout if inactive for 20 minutes. This seems to sometimes vary, but it is hard to determine exactly when the session variables are getting dumped. I've also checked the Metabase directly to make sure the settings from IIS are saving appropriately.

The way I check to see if a user has timeout our or not is by running a vbscript at page load to see if session("isLoggedIn")="Y". If it is, the session state is still intact and the user carries on, or if it's empty they are redirected back to the logon page. The "isLoggedIn" session variable is only assigned at logon so I know it's not being overwritten, same with session.timeout.

This has been driving me (and my users) absolutely crazy, so I am desperate for a little help. Any ideas if I may have missed something?

~Brian
Nov 27 '07 #1
4 8041
urstop
12
Apart from that, there are other things to take care of for this to work,

Check the IIS settings for Worker Process Recycling interval, and Idle recycling interval, you will have to play around this settings, because when the worker process recycles you will loose all your session data.

Take a look and let me know what you find.

Regards,
UrStop
Nov 28 '07 #2
thig95
6
Alright, I checked the settings on the DefaultAppPool and Recycle Worker Processes is checked with the time interval set to 1740 minutes. Now this wasn't something i set, so i am assuming that's the default value? Idle timeout for worker processes is 20 minutes. That might be the culprit...i'm going to change it to match the session state timeout and see if that helps. I'll let you!

And THANK YOU for helping me with this, i've pulled out way too much of my hair over this...

~Brian
Nov 28 '07 #3
thig95
6
Just went out to lunch for an hour, came back and sure enough i was knocked back to the logon page....

Here's a little more background on the application's overall setup. We're accessing the site via SSL over port 443. As mentioned before, the server is a windows 2K3 SE with IIS 6.0. I have also deployed URL scan for enhanced security for our application. The site has a backend DB (MSSQL 2000) where all our relevant data is housed. Everything is in ASP classic, and no .NET is being used. I do have .NET 2.0 installed, as it was installed with the deployment of SP2.

Are there any other settings in IIS or within ASP's native functions that could be causing my session variables to be dumped? The problem is also not browser specific, as i've noticed this via IE7 (primary browser used by our users) and FireFox 2.0.0.10 (used in testing/developement)

~Brian
Nov 28 '07 #4
jhardman
3,406 Expert 2GB
Just went out to lunch for an hour, came back and sure enough i was knocked back to the logon page....

Here's a little more background on the application's overall setup. We're accessing the site via SSL over port 443. As mentioned before, the server is a windows 2K3 SE with IIS 6.0. I have also deployed URL scan for enhanced security for our application. The site has a backend DB (MSSQL 2000) where all our relevant data is housed. Everything is in ASP classic, and no .NET is being used. I do have .NET 2.0 installed, as it was installed with the deployment of SP2.

Are there any other settings in IIS or within ASP's native functions that could be causing my session variables to be dumped? The problem is also not browser specific, as i've noticed this via IE7 (primary browser used by our users) and FireFox 2.0.0.10 (used in testing/developement)

~Brian
SSL might restrict that natively. Do you have to do this secure?

a simple fix that one of my webmails does is refresh certain pages after a few minutes. This could be done with an iframe for convenience.

Jared
Nov 30 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: P. Glassel | last post by:
I'm having problems getting session timeouts to change programmaticlaly under IIS6.0. This is unchanged code that ran as expected under IIS5.0. Anyone else run into this problem? Thx.
6
by: Nedu N | last post by:
Hi, I am trying to design a Home page for my applicatiion in which i want show the links for for some itms... I tried to put the following <td> <font face="Arial, Helvetica, sans-serif" ...
7
by: jsale | last post by:
I'm currently using ASP.NET with VS2003 and SQL Server 2003. The ASP.NET app i have made is running on IIS v6 and consists of a number of pages that allow the user to read information from the...
17
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...
1
by: Ken Varn | last post by:
IIS has a Session Timeout setting. How does this setting coincide with the ASP.NET property Session.SessionTimeout value. If I change this value in code, will it override the IIS Session Timeout...
6
by: javelin | last post by:
In ASP classic pages, I want to know if it's possible to prevent session variables from becoming zero length strings? I have tried setting the Session.Timeout to a large value, but alwas, after 20...
6
by: Joey | last post by:
I have an asp.net 1.1 web app written in C# and running on IIS6. The app loses session state information if I log in and then leave the webpage for say, 45 minutes or so. I have configured the...
4
by: =?Utf-8?B?Um9iSEs=?= | last post by:
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...
2
by: fijsolam1981 | last post by:
Hi, I had created a web application where Session expiry was set to 2,000 minutes in IIS. in web config i had given like this <sessionState timeout="2,000" mode="InProc"></sessionStatebut MY web...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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.