Categories

Updated: 03/24/2005

TrailScout

A cookie-based PHP script that displays a path of hyperlinks to previously visited pages on a website. For example &"Vacilando.Net &> Writing &> PHP Scripts &> TrailScout&" (see at the author''s website above). It is also known as &"cookie crumb trail&". None of the similar programs I''ve found around the Web was good enough, so I decided to write my own. The path is stored in a cookie for the duration of one session (= until you close all your browser windows). For each new visited page, the title (fetched automatically from between your &<TITLE&>&</TITLE&> tags) and the url (complete with parameters) is stored in that session variable. If user visits a page that s/he has seen before, the trail of links is reduced and that page again becomes the last one in a row. There is a variable that can be used to limit the max number of links to be stored (this is useful for large sites where trails tend to be too long).
©2003-2019 jCay.com