473,842 Members | 1,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session variables getting lost frequently

Hi,
I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website
has been running for about 1.5 years now. In the past, we used to have random
cases of session variables getting lost, but not frequently. However, since
the past 2 weeks, I am noticing an alarming increase of such session
variables lost cases. My application log shows about 20-30 such errors every
day. We have not changed anything at the server for a long time, so I am
confused as to why would the frequency of session lost jump up all of sudden?
Does it in any way indicate any hardware problems with the server?

I am using InProc mode for session and the IIS worker recycling is set to
default (i think it recycles every 1940 minutes) . Another thing I noticed
(through the IIS logs) is that in about 80-90% of the errors, the client PC
was a Win 98 machine running IE5.5. Does that make any difference?
Any help will be greatly appreciated. Thanks!
Oct 17 '06 #1
2 4262
To add on, I checked the IIS log and found that ALL of the session vars lost
errors involved a POST operation (no session lost errors with GET
operations). Again, is this something indicative of a problem?
Thanks

"maxkumar" wrote:
Hi,
I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website
has been running for about 1.5 years now. In the past, we used to have random
cases of session variables getting lost, but not frequently. However, since
the past 2 weeks, I am noticing an alarming increase of such session
variables lost cases. My application log shows about 20-30 such errors every
day. We have not changed anything at the server for a long time, so I am
confused as to why would the frequency of session lost jump up all of sudden?
Does it in any way indicate any hardware problems with the server?

I am using InProc mode for session and the IIS worker recycling is set to
default (i think it recycles every 1940 minutes) . Another thing I noticed
(through the IIS logs) is that in about 80-90% of the errors, the client PC
was a Win 98 machine running IE5.5. Does that make any difference?
Any help will be greatly appreciated. Thanks!
Oct 17 '06 #2
Hi, maxkumar.

Read this recent thread :

From: al**********@gm ail.com
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
Subject: Session Variables lost on Window 2003 Server
Date: 4 Oct 2006 11:32:46 -0700

It has interesting info for you.

You might want to try to manage your session state using either SQL Server
or the built-in State Server, however, before you nuke your system.

They are much more robust when it comes to persisting state.

InProc is prone to loss of session state.


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/
=============== =============== =====
"maxkumar" <ma******@discu ssions.microsof t.comwrote in message
news:BA******** *************** ***********@mic rosoft.com...
To add on, I checked the IIS log and found that ALL of the session vars lost
errors involved a POST operation (no session lost errors with GET
operations). Again, is this something indicative of a problem?
Thanks
"maxkumar" wrote:
>Hi,
I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website
has been running for about 1.5 years now. In the past, we used to have random
cases of session variables getting lost, but not frequently. However, since
the past 2 weeks, I am noticing an alarming increase of such session
variables lost cases. My application log shows about 20-30 such errors every
day. We have not changed anything at the server for a long time, so I am
confused as to why would the frequency of session lost jump up all of sudden?
Does it in any way indicate any hardware problems with the server?

I am using InProc mode for session and the IIS worker recycling is set to
default (i think it recycles every 1940 minutes) . Another thing I noticed
(through the IIS logs) is that in about 80-90% of the errors, the client PC
was a Win 98 machine running IE5.5. Does that make any difference?
Any help will be greatly appreciated. Thanks!

Oct 17 '06 #3

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

Similar topics

6
2283
by: Perdit | last post by:
My 1st page calls a 2nd that uses same data from a database. What is the best way to get the data in the second: a new call to the database or passing array through session variable?? I seems to me that avoiding a new call will speed up things but my concerne is that I have read many posts with caution messages againts session vars. Has anybody tested session var stability in this common scenario?
2
2364
by: M | last post by:
Have you come accross the issue described below or know more about it? We have come accross a situation where session variables are getting lost temporarily but come back again if user reloads the same page. Found that whenever the server has to load/compile (not sure which) the website dlls (for eg the first time a page is requested from a website) and if the browser makes a subsequent request for another page (for eg the first page...
1
1788
by: Dew Baboeram | last post by:
Hi Some mystery. Until I updated my windows xp I could preserve session variables through aspx pages. Now the session variables are getting lost. I cannot preserve them. I have explicitly modified the web.config file to enableSessionState, but still the variables are getting lost. I found a knowledgbase article 316112 - PRB Session Variables Do Not Persist Between Requests After You Install Internet Explorer Security Patch MS01-055.htm...
1
2425
by: dsmith-nospam | last post by:
Hello, It would be great if someone knows the answer to this problem I'm getting bogged down with it. Basically I'm working with an ASP.NET solution that uses the Session object to maintain state. When I use IIS to browse the .aspx pages the session state works but when I step through the code with Visual Studio's debugger the session variables are lost although the session ID stays the same. When I say the session variables are lost,...
2
1953
by: Jim | last post by:
Hi, I am using forms based authentication for my website. Whilst testing I have noticed that occasionaly it appears that the Context.User.Identity.Name is valid however the session variables that I have created as the website is used have been lost. I think it is something to do with the session timeout. I thought when the session times out (session varaibles lost) the user context is cleared as well - or is this an incorrect...
7
2971
by: Erik | last post by:
I have an application that uses sessions variables a lot but one I publish the application on the prod server these variables are lost. The application is written i c# 2.0 and I've set the statServer timeout to 20 min in the the web.config file. Any ideas why the variables are lost?
4
2877
by: Sarah Marriott | last post by:
Our website contains session variables that are used to validate if a user is logged in etc. We have found that these variables are randomly lost while navigating the website. We set up some basic code (as shown below) which used a meta tag to refresh an aspx page every second. It tests whether there is any content in a session variable, if not then it writes a timestamp to a text file, recreates the data in the variable and continues....
1
1471
by: =?Utf-8?B?U00=?= | last post by:
Background We migrated our Asp.net 1.1 application to Asp.net 2.0 ( just migration ) .. It was working fine in local developer machine and one of our development testing server. When we moved to staging server which is also running on windows 2000 server and we started facing a peculiar issue. We are able to login successfully every time , however , a click on a link to move to a a different page on a hyper link. <asp:HyperLink...
0
9872
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
9715
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,...
1
10672
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
10314
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 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...
0
9453
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...
0
5696
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
5885
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4089
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3145
bsmnconsultancy
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...

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.