Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP_REFERER

Status
Not open for further replies.

Kenos

Programmer
Jul 21, 2002
28
US
Hello everyone,

I am trying to get keep the maine referer I.E. so that I can track were my customer came from, I have tryed to use this code

but everytime that it runs it chages the referer
Can anyonly help?

Dim HttpRef
If HttpRef <> 1 then
Call GetReferer()
end IF

Function GetReferer()

Session.Contents(HttpRef) = Request.ServerVariables(&quot;HTTP_REFERER&quot;)

HttpRef = 1
End Function
 
Try:
Code:
Dim strHttpRef

strHttpRef = Request.ServerVariables(&quot;HTTP_REFERER&quot;)

If strHttpRef <> &quot;&quot; then 
  GetReferer
End if

Function GetReferer()
  Session(&quot;RefererAddress&quot;) = strHttpRef
End function

'# Show referal address:
Response.Write(Session(&quot;RefererAddress&quot;))
www.vzio.com
ASP WEB DEVELOPMENT



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top