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

Session Variable dissappears between post backs on Win 2003


I have a problem with a Session variable that dissapears after a
postback of one of my pages.

This only happens on WIn 2003 servers.. it is fine on my XP dev box.

This page opens in another window, but I have ascertained that is is
definitely using the same session ID.

Nowhere on the page do I clear the session variable.. it is only ever
retrieved... this page only works if it is there.

Has anyone had as similar problem? Any help gratefully received!

Dirc
--

Nov 19 '05 #1
6 1262
Is the Windows 2003 server (you say servers which leads me to ask this) part
of a webfarm? You may be losing sessions as you are moved from one server to
another. If this is a the case one way to fix this would be to store session
state on the SQL Server, if you're using one.

Here's an article on how to move session state to the SQL Server. It's easy
to do and has some other benefits such as users not losing their sessions
even if a server in the farm needs to be restarted, etc.

http://idunno.org/dotNet/sessionState.aspx

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Dirc Khan-Evans" <di*************@eurorscgskybridge.com> wrote in message
news:uT**************@TK2MSFTNGP14.phx.gbl...

I have a problem with a Session variable that dissapears after a
postback of one of my pages.

This only happens on WIn 2003 servers.. it is fine on my XP dev box.

This page opens in another window, but I have ascertained that is is
definitely using the same session ID.

Nowhere on the page do I clear the session variable.. it is only ever
retrieved... this page only works if it is there.

Has anyone had as similar problem? Any help gratefully received!

Dirc
--

Nov 19 '05 #2
No, no, no..

I mean in multiple environments.. dev, testing and live.

BTW, I have also tried using StateServer, since I have been told it is
more reliable.. but something as simple as this should not happen on a
lightly used test server!

--

Nov 19 '05 #3
Dirc,

Ok, I didn't realize you meant between multiple environments. So, you've
already stated that this is not hapenning on your development box. Is it
happening on the testing and production servers both? Are other developers
deploying code to the testing or production servers at the same time?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Dirc Khan-Evans" <di*************@eurorscgskybridge.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
No, no, no..

I mean in multiple environments.. dev, testing and live.

BTW, I have also tried using StateServer, since I have been told it is
more reliable.. but something as simple as this should not happen on a
lightly used test server!

--

Nov 19 '05 #4
S. Justin Gengo wrote:
Dirc,

Ok, I didn't realize you meant between multiple environments. So,
you've already stated that this is not hapenning on your development
box. Is it happening on the testing and production servers both? Are
other developers deploying code to the testing or production servers
at the same time?


No.. I am the only one changing anything in the bin folder... I know
where you are coming from.. There are no changes going on that would
cause an IIS restart.

To reiterate: The interesting things to note is that
(a) it always happens with this page.. it is in no way an intermittent
problem,
(b) this only happens when the new page is displayed in another window.
The first page loads fine but after that the session variable totally
dissappears for no apparent reason.. there is no explicit removal of
any Session variables in the code.
(c) It only happens on IIS6/ win 20003 servers. Not XP
(d) The session has the same sessionID for both windows (as expected).

This really smells of a bug to me.....

Dirc

--

Nov 19 '05 #5
Dirc,

Ok, here's a test to try. In the first window create a button that, when
clicked, response.writes the session variable to the page.

Open the page and click the button to confirm the session variable is there.
Then open your second page. Click the first page's session variable button
again to see if the session variable has disappeared. I'm wondering if the
pop-up window is somehow using a different session.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Dirc Khan-Evans" <dirc.khan-evans@[no_spam_please]eurorscgskybridge.com>
wrote in message news:OD**************@TK2MSFTNGP09.phx.gbl...
S. Justin Gengo wrote:
Dirc,

Ok, I didn't realize you meant between multiple environments. So,
you've already stated that this is not hapenning on your development
box. Is it happening on the testing and production servers both? Are
other developers deploying code to the testing or production servers
at the same time?


No.. I am the only one changing anything in the bin folder... I know
where you are coming from.. There are no changes going on that would
cause an IIS restart.

To reiterate: The interesting things to note is that
(a) it always happens with this page.. it is in no way an intermittent
problem,
(b) this only happens when the new page is displayed in another window.
The first page loads fine but after that the session variable totally
dissappears for no apparent reason.. there is no explicit removal of
any Session variables in the code.
(c) It only happens on IIS6/ win 20003 servers. Not XP
(d) The session has the same sessionID for both windows (as expected).

This really smells of a bug to me.....

Dirc

--

Nov 19 '05 #6

Do you have anti-virus software running? You stated that you are the
only one changing the bin folder...but if you have anti-virus software
running it could be touching the bin folder. We had the same problem
with session and disabling the anti-virus s/w fixed the problem.
--
Rosanne
------------------------------------------------------------------------
Rosanne's Profile: http://www.highdots.com/forums/m283
View this thread: http://www.highdots.com/forums/t3035507

Nov 19 '05 #7

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

Similar topics

3
by: Geoff Winsor | last post by:
Hi, I am experiencing a problem with recalling a session variable which stores whether a person is logged in to a "members only" section of a website. This area of the site has been working...
9
by: William LaMartin | last post by:
I have a problem, mentioned here before, of Session and Application variables disappearing at one site but not at others or on my development computer. The problem is illustrated by an example...
0
by: Paul | last post by:
Hello, all --- Environment: Visual Studio.NET 2003 (C#); Windows 2003 Server; IIS 6.0 Here is the problem I am having. I have created a web custom control in C# which includes a datagrid,...
2
by: Paul | last post by:
Tried to post this hours ago, but it still isn't visible. If it's a repeat, sorry for the inconvenience. Hello, all --- Environment: Visual Studio.NET 2003 (C#); Windows 2003 Server; IIS 6.0...
5
by: Tim W. | last post by:
Folks. In a B2B Procurement system we've created, we got following Session-Issue: Configuration: We are using IIS 6.0 and added SQL-Based-Sessions in web.config with a timeout of 240 minutes...
4
by: T Ralya | last post by:
I am told that ASP.NET controls the session ID and session variables, but that does not fit my symptoms. I am posting here as directed. I'm hoping that someone can at least recommend something to...
9
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings...
5
by: Sam | last post by:
Hi All, I have a very weird issue with my session variable and I'm hoping that someone can help me out. The issue is my session variable dissappears after a request is redirected to a new page....
5
by: Twayne | last post by:
Hi, If ever a newbie wants to know how much he has to learn yet, he only has to look here<g>!! ANYway: PHP 5.2.5; XP Pro SP2+, local Apache Server My actual question is: How do I get a...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.