P
Prabhat
Hello,
I have the below requirement.
When ever my website is opened by any link: say clicked from the google
search result or a link from other website:
Then I should able to know the referrer URL. How Do I get that?
I know about Request.ServerVariables("HTTP_REFERER"). So I used this in
"global.asa" file in "Session_OnStart" event like this:
Sub Session_OnStart
Session("ReferralURL") = Request.ServerVariables("HTTP_REFERER")
End Sub
Sub Session_OnEnd
Session("ReferralURL") = ""
End Sub
So that I can use the session variable any where in my website, because the
HTTP_REFERER will give the URL of the last webpage.
But this seems to not working.
Please help.
Thanks
Prabhat
I have the below requirement.
When ever my website is opened by any link: say clicked from the google
search result or a link from other website:
Then I should able to know the referrer URL. How Do I get that?
I know about Request.ServerVariables("HTTP_REFERER"). So I used this in
"global.asa" file in "Session_OnStart" event like this:
Sub Session_OnStart
Session("ReferralURL") = Request.ServerVariables("HTTP_REFERER")
End Sub
Sub Session_OnEnd
Session("ReferralURL") = ""
End Sub
So that I can use the session variable any where in my website, because the
HTTP_REFERER will give the URL of the last webpage.
But this seems to not working.
Please help.
Thanks
Prabhat