Re: Where request came from/referrer
- From: "bruce barker \(sqlwork.com\)" <b_r_u_c_e_removeunderscores@xxxxxxxxxxx>
- Date: Tue, 11 Apr 2006 12:36:12 -0700
UrlRefer is filled in by the browser and optional. Many proxy servers will
strip it for security reasons, I expect most browsers will all stop
supporting it. if your want to know where in your site a link came from, add
a url parameter to it.
http://mysite/somepage.aspx?source=login
-- bruce (sqlwork.com)
"Sega" <Sega@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:61AAB24D-8D4B-48C4-B7C8-EBB2733039DC@xxxxxxxxxxxxxxxx
I am trying to find where my user came from - in particular whether they
came
from our application login on our own site or whether they came by keying
the
url directly without going through our login.
Currently I am using the following code, but would be happy to change to
something more effective.
Dim MyUrl As Uri = Request.UrlReferrer
If MyUrl Is Nothing Then
gvMyUrl = "nothing"
Else
gvMyUrl = MyUrl.ToString
End If
No matter how the user comes to my app I am getting "nothing". That is to
be expected if keying the URL directly. When using the logon I am still
getting nothing. Is that because it is coming from a secure site (the
logon)
to my app which is not on a secure site?
Any ideas how to get this "where from" info.
Thanks for any help I can get. I am desperate to solve this and not
really
experienced in this area.
.
- Prev by Date: Re: Impersonate Identity
- Next by Date: Re: Oracle - works with Framework 1.1, not with 2.0
- Previous by thread: ASP.NET/SQL Database Applications Development For Free
- Next by thread: Unable to cast object of type 'ASP.' to type ''
- Index(es):
Relevant Pages
|