Capture the sessionID from intitial URL

  • Thread starter Thread starter Chip
  • Start date Start date
C

Chip

Maybe this problem has been solved many times. My users frequently bookmark
the URL with sessionID in it and then have all kinds of problems when
subsequent users use that bookmark since the old session is still open. I
need to detect whether the initial URL contatins a sessionID so I can
redirect them to a clean URL. Request.RawURL doesn't give me the sessionID
if it exists on the URL. Is there some other method of digging it out?

Chip
 
Have you tried the Request.ServerVariables["Query_String"] ? You could then
detect it in the Session_OnStart event I believe.
 
The "Query_String" variable will only get me what's past the "?". And I
don't see any other variables that will get me the whole input URL including
the sessionID in parens, nor do I see any way to get any part of the URL
that includes the sessionID.

Is there really no way to get the entire raw URL before it's modified?


Mark Fitzpatrick said:
Have you tried the Request.ServerVariables["Query_String"] ? You could
then detect it in the Session_OnStart event I believe.


--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006


Chip said:
Maybe this problem has been solved many times. My users frequently
bookmark the URL with sessionID in it and then have all kinds of problems
when subsequent users use that bookmark since the old session is still
open. I need to detect whether the initial URL contatins a sessionID so I
can redirect them to a clean URL. Request.RawURL doesn't give me the
sessionID if it exists on the URL. Is there some other method of digging
it out?

Chip
 
Back
Top