• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

PHP get browser history

Hi All,

Is there a way to find out what the previous page a user was on within PHP?


Phil

0
detox1978
Asked:
detox1978
  • 2
1 Solution
 
glcumminsCommented:
You can check the value of $_SERVER['HTTP_REFERER']. Please note that this information is not set by all browsers, and will only be set if a person clicks a link to get to your page (rather than by entering your URL directly).
0
 
glcumminsCommented:
If the previous page was on your site, you can also track a user's session. For example, you can create a database entry each time the user visits a new page on your site, or you can track the entire list within the $_SESSION array itself.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now