Re: Losing Session vars on Redirect - HELP



Each browser instance starts its own Session.

--
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"JP" <JP@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2A1AFB9D-EBB3-4C05-9A08-6A37D009DCF8@xxxxxxxxxxxxxxxx
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


.



Relevant Pages

  • Re: _SESSION weirdness behind a NAT firewall/router: bug?
    ... that the 'sess_deleted' file is actually being used as a session ID. ... force the cookie to expire. ... Any $_SESSION values introduced by one browser become part of the ... I re-load the non-logged-in index page in Opera. ...
    (comp.lang.php)
  • Re: Is Session Always Cleared?
    ... If the first user closes his browser after he is finished, the session cookie is forgotten. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Detecting loss of session
    ... > a request. ... From what I've read on session cookies ... > sending) them as soon as they expire, not when the browser is closed? ... If you don't set the expiration on a Cookie, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Cookies , Session Which is Better ? and Global.asa Question
    ... YOU SHOULD NEVER STORE PERSONALLY IDENTIFIABLE INFORMATION IN A ... If you needed to store personal information in a cookie use non ... impossible - its much harder for me to hijack session information from ... The average time a session lasts is 20 mins. So, when your browser ...
    (microsoft.public.inetserver.asp.general)
  • Re: ASP sessionstate
    ... ASP doesn't know or care what browser it ... ticket number given when the first item is added to the cart. ... How can a Response.Write write to the server screen? ... :> delete the cart file and set the session ...
    (microsoft.public.inetserver.asp.general)