tags:

views:

52

answers:

4

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
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
+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.

http://www.google.com/analytics/

madcolor
A: 

You can look at the Referer HTTP header.

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