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("isLogg edIn")="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
4 8141
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
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
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
jhardman 3,406
Recognized Expert Specialist
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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.
|
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" color="#ffffff" size="2"> Contact
| My Profile | Logout /font>
</td>
|
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 database into classes, which are used
throughout the application. I have made class collections which, upon reading
from the DB, create an instance of the class and store the DB values in
there temporarily. My problem is that if user1 looks at...
|
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
|
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 setting?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
| |
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
minutes, my session variable times out. I also tried setting the
session timeout in IIS manager to a high value, but this did no good
either.
I just want to allow one particular session variable to last a long
time. Any other suggestions? \
|
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
authentication section in web.config to allow for a timeout value of
120 (forms authentication). And then I also set the IIS session
timeout to 150 minutes. That didn't help. Why does the session state
not last for at least 120 minutes, when I have...
|
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 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 ...
|
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
application was left logged in at 18:00 15th Oct, but on the following
day 08:30 16th Oct, the session expired as soon as MY web application
was used. It was also noted that during the day, MY web application
occasionally got session expiry when...
|
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...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |