473,396 Members | 1,689 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.

Server losing session variables

All,

We're experiencing a very strange session variable problem.
We've got a running version of our site at www.mysite.com, which points to
c:\mysite in IIS 5
This same site is also reachable via test.mysite.com, because we specified
it in the "Advanced multiple Web Site configuration" dialog box.
So it's basically the same website.

Now, on our site we have a datagrid with paging enabled.
When, for example, going to page 8, then clicking on an item which opens a
new page and then from within that page returning to the page with the
datagrid (Response.Redirect), it goes back to page 1 instead of page 8.
We're using a Session variable called PageNr to keep track of the page that
the user was on.

The weird thing now is that when we're using the URL test.mysite.com
everything works fine.
When we're using the URL www.mysite.com, the problem appears.

We're using IIS 5, ASP v1.0 on a Windows 2000 Server SP4 with all security
patches installed.

Does anyone have an idea what might cause the problem?

Thanks in advance
Wim
Nov 19 '05 #1
2 1433
Wim Geukens wrote:
All,

We're experiencing a very strange session variable problem.
We've got a running version of our site at www.mysite.com, which points to
c:\mysite in IIS 5
This same site is also reachable via test.mysite.com, because we specified
it in the "Advanced multiple Web Site configuration" dialog box.
So it's basically the same website.

Now, on our site we have a datagrid with paging enabled.
When, for example, going to page 8, then clicking on an item which opens a
new page and then from within that page returning to the page with the
datagrid (Response.Redirect), it goes back to page 1 instead of page 8.
We're using a Session variable called PageNr to keep track of the page that
the user was on.

The weird thing now is that when we're using the URL test.mysite.com
everything works fine.
When we're using the URL www.mysite.com, the problem appears.

We're using IIS 5, ASP v1.0 on a Windows 2000 Server SP4 with all security
patches installed.

Does anyone have an idea what might cause the problem?

Thanks in advance
Wim


I am beginning to believe that Microsoft broke sessions in one of their
recent patches. With Win 2003 and IIS6, this problem becomes far worse
as the ViewState gets hosed. Sessions are getting recycled at random
times, no matter what the App Pool settings are.

Another problem ASP.Net has is the garbage collecting of statics, even
when the are still in use. Very annoying.
Nov 19 '05 #2
Ik denk dat het probleem de software is. Computers dienen to niks, behalve dan problemen creëren. Heb ge dat nog niet door, wimmeke

From http://www.developmentnow.com/g/8_20...-variables.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Jul 11 '06 #3

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

Similar topics

7
by: vivek | last post by:
Do any of you guys have any idea what might be the reason for losing session variables, i was working on a page where i had to stroe a array in a session(trust me that was the only 'way' i could...
2
by: James | last post by:
Session("UserName") is set when someone logs in. Get to a page that displays a record where you can type a comment. The form has an onSubmit event that calls a javascript function. That function...
4
by: Keith-Earl | last post by:
I have been writing ASP.NET apps since the RTM build and have never seen this. I built a simple app that uses session variables on my DEV laptop. All runs well. I have a simple toggle routine...
3
by: ACaunter | last post by:
Hi all, I'm wondering why I keep losing my session variables all the time. I've set the timeout to be an hour, but for some reason randomly i keep losing everything.. what could be causing this??...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
0
by: Jimmy Reds | last post by:
Hi, Sorry if this appears twice but I post through Google Groups and it had a funny 5 minutes and didn't appear to post this message the first time. I am setting session variables on a page...
2
by: Jimmy Reds | last post by:
Hi, I am setting session variables on a page then doing a header/location redirect to a second page however I am losing one of my session variables. Not all of them, just one. Here are some...
0
by: jason.friesen | last post by:
Hi Folks I have a custom CMS built in classic ASP that is losing session variables. To wit, I can create a situation where my 'show all the set SVs' test page shows a different set of SVs on each...
5
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request...
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
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
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
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...
0
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...
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.