473,396 Members | 1,804 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 Variables lost on Window 2003 Server

I've got an odd case where I'm developing on a Win2k box and everything
works fine (no, that's not the odd part).

However, when I publish my code to a test box (2k3 Server, single
processor), I will lose my session variables after a random number of
server.transfers from one page to another. Sometimes a page can access
the session variables and sometimes it can't. There are no underscores
or weird characters in the server name (aside from a hyphen).

Another weird part is that if I use localhost as the path, I DON'T lose
the session variables. Anyone have any advice on what to do?

Oct 4 '06 #1
5 1467
Okay, forget the part about localhost working. It's forgetting the
session variables too.

Oct 4 '06 #2
Session loss is typical after app pool recycling. You need to eliminate this
as the source of the problem first by viewing the application event logs for
the application.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
<al**********@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Okay, forget the part about localhost working. It's forgetting the
session variables too.

Oct 4 '06 #3
On two different XP Pro systems, works fine. Same code on this 2003
Server doesn't work. I lose the session values randomly. The
Session.SessionID is retained throughout though, which is weird. I
checked and I'm not overwriting them anywhere either. Checked the logs
and there's no indication of the app pool reseting.

Oct 5 '06 #4
Interesting. Wire up your session_end event and dump the stack trace to a
log or flat file. Read the file to find out any clues as to what triggered
the reset.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"Dakhath" <al**********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
On two different XP Pro systems, works fine. Same code on this 2003
Server doesn't work. I lose the session values randomly. The
Session.SessionID is retained throughout though, which is weird. I
checked and I'm not overwriting them anywhere either. Checked the logs
and there's no indication of the app pool reseting.

Oct 5 '06 #5
Turns out this may be due to a bad IIS install by IT. Tried the same
code on a different Win 2k3 box and everything works fine. Similarly,
tried the working production code on the server in question and it
suddenly starts dropping session variables at random. I'm going to
nuke/reinstall the box and see if that addresses it.

Oct 6 '06 #6

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

Similar topics

1
by: Vetrivel | last post by:
Application architecture : Develop interface between two existing systems, a. Enterprise CRM system b. Web based intranet system. Environment : Intranet Server : IIS and ASP. Script :...
7
by: Billy Jacobs | last post by:
I am having a problem with my session variable being set to Null for no apparent reason. I am declaring it like the following when the user logs in. dim objUserInfo as new clsUserInfo 'Set...
6
by: Tony G. | last post by:
Hi there, I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i...
5
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
3
by: Nhi Lam | last post by:
Hi, I understand that there are 3 modes in which I can configure the SessionStateModule. What I need is an out of process Session State store with fail over support. The "SQL Server Mode" seems...
5
by: rich00 | last post by:
i am developing an asp.net web based application using javascript as the server side scripting language. The application makes constant use of an access database and session variables. in a random...
7
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...
10
by: Nils Erik Dall | last post by:
Hi All I have a problem with my asp code on an iis 6.0 server on windows 2003 web. When I redirect between to asp pages on my web-site, where pageA is in a different virtual directory from pageB...
2
by: maxkumar | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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?
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:
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
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.