G
Guest
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.
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.