I ran into a situation this past week where I wanted to forward a user from one page to another page then send the user back to the original page (using CFLocation). While attempting this, the page that we CFLocation to was returning a blank cgi.http_referer value (I was expecting it to return the HTTP Referer as the page that had the CFLocation on it).

After researching why this may be, I found this blog entry from Ben Nadel that pointed me in the right direction. Apparently when you CFLocation from page to page, the HTTP Referer for all the pages is the HTTP Referer of the originating page. In my case, it was returning blank because I was manually entering the URL of the page with the CFLocation on it.

Here is Ben's blog entry, if you want further information: ColdFusion CFLocation Only Passes Referrer Of The Referring URL.