Is it possible to find out which page the user was previously browsing from current web page?
+2
A:
if you’re using PHP you can use $_SERVER['HTTP_REFERER']
but this information can be faked by browsers, so it’s not 100 % foolproof
knittl
2009-09-09 14:26:51
Note the referer header is not included when the link is from an HTTPS to an HTTP page. Most browsers enforce this due to security considerations.
Taylor Leese
2009-09-09 14:31:32
+1
A:
Only if the page links to your page. Then you can look at the referrer.
http://en.wikipedia.org/wiki/HTTP%5Freferrer
Or if it's a page on your domain, you can use analytics.
madcolor
2009-09-09 14:26:54
A:
Try referrer (server side), but other than that - no.
It can't be done client side for security reasons - imagine you page checking visitors browse history - a big no no.
Mikeon
2009-09-09 14:27:18