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
-- 6 1265
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 --
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!
--
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!
--
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
--
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
--
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |