All the sudden my app has started to loose Session values after a
Response.Redirect to another page in the same project. Ive read several post
about setting the Terminate Boolean to false to solve this problem, but it
hasnt work. On top of that it seems total random.
I have a start.aspx page that all other web application call to begin the
process. This start page creates needed Sessions and other miscellaneous
tasks, and then redirects to another page that uses the session data.
This only seems to be affecting me when Im using a model window to redirect.
Now I know model windows open a new window when something in them causes a
post back (and we figure a way to solve that problem long ago), but this is
happening before the page is rendered.
Placing breakpoints in the code shows that Response.Redirect is firing off
Session_Start in the global asax. Overriding the browsers cookie handing to
allow session cookies works, but it also configured as cookieless=false in
the web.config for the sessionState, so even if I didn’t override the browser
cookie handling, why is it working sporadically (very sporadically actually)
Any ideas. Im using C# and VS2005?
--
JP
..NET Software Developer 4 2022
Each browser instance starts its own Session.
--
HTH,
Kevin Spencer
Microsoft MVP
DSI PrintManager, Miradyne Component Libraries: http://www.miradyne.net
"JP" <JP@discussions.microsoft.comwrote in message
news:2A**********************************@microsof t.com...
All the sudden my app has started to loose Session values after a
Response.Redirect to another page in the same project. Ive read several
post
about setting the Terminate Boolean to false to solve this problem, but it
hasnt work. On top of that it seems total random.
I have a start.aspx page that all other web application call to begin the
process. This start page creates needed Sessions and other miscellaneous
tasks, and then redirects to another page that uses the session data.
This only seems to be affecting me when Im using a model window to
redirect.
Now I know model windows open a new window when something in them causes a
post back (and we figure a way to solve that problem long ago), but this
is
happening before the page is rendered.
Placing breakpoints in the code shows that Response.Redirect is firing off
Session_Start in the global asax. Overriding the browsers cookie handing
to
allow session cookies works, but it also configured as cookieless=false in
the web.config for the sessionState, so even if I didn't override the
browser
cookie handling, why is it working sporadically (very sporadically
actually)
Any ideas. Im using C# and VS2005?
--
JP
.NET Software Developer
I realize that. But this is starting a new session in the same window. It
should start a new session with the window.open, but not on a redirect to
another page within the project. And whats worse is, its random. Mostly
starts a new session, but about 20% its just fine.
--
JP
..NET Software Developer
"Kevin Spencer" wrote:
Each browser instance starts its own Session.
--
HTH,
Kevin Spencer
Microsoft MVP
DSI PrintManager, Miradyne Component Libraries: http://www.miradyne.net
"JP" <JP@discussions.microsoft.comwrote in message
news:2A**********************************@microsof t.com...
All the sudden my app has started to loose Session values after a
Response.Redirect to another page in the same project. Ive read several
post
about setting the Terminate Boolean to false to solve this problem, but it
hasnt work. On top of that it seems total random.
I have a start.aspx page that all other web application call to begin the
process. This start page creates needed Sessions and other miscellaneous
tasks, and then redirects to another page that uses the session data.
This only seems to be affecting me when Im using a model window to
redirect.
Now I know model windows open a new window when something in them causes a
post back (and we figure a way to solve that problem long ago), but this
is
happening before the page is rendered.
Placing breakpoints in the code shows that Response.Redirect is firing off
Session_Start in the global asax. Overriding the browsers cookie handing
to
allow session cookies works, but it also configured as cookieless=false in
the web.config for the sessionState, so even if I didn't override the
browser
cookie handling, why is it working sporadically (very sporadically
actually)
Any ideas. Im using C# and VS2005?
--
JP
.NET Software Developer
Have you checked the event log to make sure something in the redirect isn't
causing the site to crash and therefore restart the ASP.NET worker process /
site?
"JP" <JP@discussions.microsoft.comwrote in message
news:94**********************************@microsof t.com...
>I realize that. But this is starting a new session in the same window. It
should start a new session with the window.open, but not on a redirect to
another page within the project. And whats worse is, its random. Mostly
starts a new session, but about 20% its just fine.
--
JP
.NET Software Developer
"Kevin Spencer" wrote:
>Each browser instance starts its own Session.
-- HTH,
Kevin Spencer Microsoft MVP
DSI PrintManager, Miradyne Component Libraries: http://www.miradyne.net
"JP" <JP@discussions.microsoft.comwrote in message news:2A**********************************@microso ft.com...
All the sudden my app has started to loose Session values after a
Response.Redirect to another page in the same project. Ive read several
post
about setting the Terminate Boolean to false to solve this problem, but
it
hasnt work. On top of that it seems total random.
I have a start.aspx page that all other web application call to begin
the
process. This start page creates needed Sessions and other
miscellaneous
tasks, and then redirects to another page that uses the session data.
This only seems to be affecting me when Im using a model window to
redirect.
Now I know model windows open a new window when something in them
causes a
post back (and we figure a way to solve that problem long ago), but
this
is
happening before the page is rendered.
Placing breakpoints in the code shows that Response.Redirect is firing
off
Session_Start in the global asax. Overriding the browsers cookie
handing
to
allow session cookies works, but it also configured as cookieless=false
in
the web.config for the sessionState, so even if I didn't override the
browser
cookie handling, why is it working sporadically (very sporadically
actually)
Any ideas. Im using C# and VS2005?
--
JP
.NET Software Developer
Is the Modal browser window calling Response.Redirect?
--
HTH,
Kevin Spencer
Microsoft MVP
DSI PrintManager, Miradyne Component Libraries: http://www.miradyne.net
"JP" <JP@discussions.microsoft.comwrote in message
news:94**********************************@microsof t.com...
>I realize that. But this is starting a new session in the same window. It
should start a new session with the window.open, but not on a redirect to
another page within the project. And whats worse is, its random. Mostly
starts a new session, but about 20% its just fine.
--
JP
.NET Software Developer
"Kevin Spencer" wrote:
>Each browser instance starts its own Session.
-- HTH,
Kevin Spencer Microsoft MVP
DSI PrintManager, Miradyne Component Libraries: http://www.miradyne.net
"JP" <JP@discussions.microsoft.comwrote in message news:2A**********************************@microso ft.com...
All the sudden my app has started to loose Session values after a
Response.Redirect to another page in the same project. Ive read several
post
about setting the Terminate Boolean to false to solve this problem, but
it
hasnt work. On top of that it seems total random.
I have a start.aspx page that all other web application call to begin
the
process. This start page creates needed Sessions and other
miscellaneous
tasks, and then redirects to another page that uses the session data.
This only seems to be affecting me when Im using a model window to
redirect.
Now I know model windows open a new window when something in them
causes a
post back (and we figure a way to solve that problem long ago), but
this
is
happening before the page is rendered.
Placing breakpoints in the code shows that Response.Redirect is firing
off
Session_Start in the global asax. Overriding the browsers cookie
handing
to
allow session cookies works, but it also configured as cookieless=false
in
the web.config for the sessionState, so even if I didn't override the
browser
cookie handling, why is it working sporadically (very sporadically
actually)
Any ideas. Im using C# and VS2005?
--
JP
.NET Software Developer
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: james |
last post by:
I am new to php and need some help getting the session variables into
include files. (after-thought, Sorry for the drawn out post but I
really, really need help....;)
Here's what I'm doing..
...
|
by: GFuller |
last post by:
- We have 2 aspx pages in a .NET project. The first sets
a session variable and has a button that when clicked
performs a 'redirect' to the second page which then reads
the session variable.
...
|
by: samtran331 |
last post by:
Hi all
I've got a .Net site that has 3 session variables...the variables should persist over 23 unique insert pages, 23 update, and 23 "view total" pages...
And the problem is once I get past one...
|
by: John |
last post by:
Hi, I have a routine that sets some session variables and then redirects the
user to another page in the same application/ same folder.
=======
Session("MyName") = "Fredsmith"...
|
by: scott_shuster |
last post by:
Hi,
I need to preserve state as I'm Response.Redirecting to a page in a
subfolder elsewhere in my web.
However, everytime I redirect, my session vars are cleared out. Are
Session variables...
|
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...
|
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...
|
by: Ned Balzer |
last post by:
Hi,
Apologies if this is a newbie question, I haven't found the answer in
any faqs.
I have an asp.net 2.0 page that sets session variables and then
redirects to another page. For the page...
|
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...
|
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...
|
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: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
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: 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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |