Re: Losing Session vars on Redirect - HELP



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@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:94204A78-EFBA-41D5-95C4-E829850F7862@xxxxxxxxxxxxxxxx
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@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 handling, login across all subdomains
    ... but how specifically (session info stored in cookies?)? ... subdomain.example.com, they are not logged in at the subdomain. ... Your problem is the session id is kept in a cookie. ... if not authenticated at the current vhost redirect to the URL (and ...
    (comp.lang.php)
  • Help Needed: Cant Successfully Perform Server-side Redirection
    ... The only problem that I really have is session timeouts. ... situations and redirect the user to the Logon page. ... If Not IsLogonPage And Not IsLogOffPage Then ... Dim ExpirationInterval As Integer = Settings.TimeoutMinutes ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: session value lost
    ... >into as sessionvariable (username). ... So I redirect to my search.aspx. ... >I save the recordid to the session and redirect to work.aspx. ... >new sqlstring I fetch the data from the sqlserver. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Domain Redirect - loses session variables
    ... I purchased this Domain from DirectNic and they have the option to redirect ... with no frame which works like a charm. ... Session variables are saved and it works great! ... >>> from one domain to the other through some shared data storage. ...
    (comp.lang.php)
  • Re: NoAccessAllowed.aspx
    ... Set a low cache time in your page to ensure it does not cache for long on ... > the user clicks the BACK browser button after the session has expired? ... How do you know to redirect them? ...
    (microsoft.public.dotnet.framework.aspnet)