Forum Moderators: coopster

Message Too Old, No Replies

Access previous URL

Extended referer functionality?

         

chrisjoha

10:31 pm on Aug 28, 2005 (gmt 0)

10+ Year Member



I want to know what was the previous page my users browsed, is this possible? I though I could do this with getenv('HTTP_REFERER'); but that only seems to have a value when the user clicked a link. Is it possible to know the previous site no matter how the user landed on the page? Also, is it possible to retrieve the url of a frameset that is loading my page (either through normal frames or iframes)?

dcrombie

3:24 pm on Aug 29, 2005 (gmt 0)



You can't extend the 'referer' functionality. It _used_ to be possible to access the 'history' for a browser using JavaScript but that was disabled almost immediately for (obvious) security/privacy reasons. Ditto for accessing frames or pages that don't belong to your domain.