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

cgi.http_referer and back button

Status
Not open for further replies.

DeZiner

Programmer
May 17, 2001
815
US
Does the browsers back button create the http_referer? DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
In my experience, the "back" button does not request the page again from the server; instead, it retrieves the page from the user's cache. So, the page wouldn't execute again on the CFServer, and the value of the HTTP_REFERER would be the same as it was when the page was first loaded.

There's really no consistency as far as the browser-specific behaviors like back button, etc.
 
And very little consistency with the way HTTP_REFERER is implemented, period [wink]

I believe IE has stopped sending HTTP_REFERER altogether since v.6 (??).

That said... you might be able to set the page to not cache with:
Code:
<META HTTP-EQUIV=&quot;expires&quot; CONTENT=&quot;0&quot;>
and/or
Code:
<META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>
and that might get it to reload the page when the back button is clicked. I wouldn't count on it 100% though.


Hope it helps,
-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top