I have the following that stores the previous 10 URL\'s into a session:
function curPageURL() { $pageURL = \'http\'; if ($_SERVER[\"HTTPS\"] == \"on\") {$pageU
if(!in_array($CurrentPage, $_SESSION['pages']) { $_SESSION['pages'][] = $CurrentPage; }