Other than setting a cookie, determine if a user navigated t

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
humblepgmr
Forum Newbie
Posts: 1
Joined: Wed Nov 07, 2007 1:28 pm

Other than setting a cookie, determine if a user navigated t

Post by humblepgmr »

Hi sorry about the cryptic title.

Is there a way, other than setting a cookie, to determine if a user navigated to a website via link? Preferably by accessing some value in the $_SERVER object? How is this done?

Thanks.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

There's $_SERVER['HTTP_REFERER'] (yes, it's actually misspelled) but it relies on the browser sending the header (which most will) so it's it's not considered "reliable".
Post Reply