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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Request.ServerVariables("HTTP_REFERER")

Status
Not open for further replies.

dswitzer

Technical User
Aug 2, 2002
298
US
Request.ServerVariables("HTTP_REFERER") does not return a value on the server I am working with.

Request.ServerVariables("HTTP_REFERER") seems to work OK...

Is this a server setting?

I have an ASP page where I want to put a conditional back-button -- depending on the referring page...

Assuming this is not an easy fix -- are there any workarounds?

Thanks.
 
how you are you getting to the next page? with a link? Also how do you konw that the HTTP_REFERRER is ok if it does not return a value?
 
Sorry - my bad....

HTTP_USER_AGENT works fine....
HTTP_REFERER does not return any value....

When linking through a gif with links, HTTP_REFERER fails -- but regular links return the correct value. So I know it's not the server now.

So, short-term solution is that when HTTP_REFERER is null - I know it came from my gif page....

Long-term solution???










 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top