473,503 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Capture the sessionID from intitial URL

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
Oct 4 '06 #1
2 1772
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" <ch**@intradata.comwrote in message
news:u1**************@TK2MSFTNGP02.phx.gbl...
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

Oct 4 '06 #2
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" <ma******@fitzme.comwrote in message
news:eB*************@TK2MSFTNGP06.phx.gbl...
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" <ch**@intradata.comwrote in message
news:u1**************@TK2MSFTNGP02.phx.gbl...
>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


Oct 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2134
by: Christoph Pieper | last post by:
Hi, we've the following problem : We have an asp-application which sets the cookie on first login. The cookie will never be touched during user access. The user can work the whole day, but...
2
2220
by: Berrucho | last post by:
Please Help! I recently posted this same issue but got no answer... please help Using VB.NET, IIS5, W2K Adv SP3 all patches, .net 1.0, VS.NET 2002 Using forms authentication, persistent cookie...
8
1986
by: Brad Simon | last post by:
I have written a shopping cart using ASP .NET (VB). It has been running quite successfully on a site for about a year or so. I use the SessionID as the key to hold information on the shopping...
6
7647
by: Mike Kline | last post by:
Hi There! I'm creating a HttpModule and after AcquireRequestState event, I tried to access the HttpApplication.Session.SessionID and somehow I'm getting a new value on every Refersh of ASPX...
4
8818
by: Andy Fish | last post by:
Hi, I have an asp.net application that is using Forms Authentication and maintaining http session state using cookies in the normal way. when the user clicks the logout button I do this: ...
4
535
by: Kenny | last post by:
Hi, I have created an ASPX Dim ss As HttpSessionState ss = HttpContext.Current.Session HttpContext.Current.Session("tesAt") = "testValue" Response.Write(ss.SessionID() & "|<br>")...
2
2519
by: ocean | last post by:
I want to get the session associated with the specific sissionID. I made a activex control required to login to the server.My idead as follow: 1.Get sessionID through IHTMLDocument2 interface(a COM...
2
3197
by: XML newbie: Urgent pls help! | last post by:
If I get SessionID in 1 function how do I carry that SessionID(value of this SessionID) to another function or another form within the same project
0
7201
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.