Track user has visited at least 4 pages

Hi I want to track whether a specific user visits at least 4 pages on a website - any idea how to do this with PHP?


set up a $_SESSION tracker based on IP address or similar $_SERVER variable and collect the $_SERVER[‘REQUEST’] page names.

Have a look at $_SESSION and $_SERVER variables