• warning: highlight_file(/mnt/stor1-wc1-dfw1/377854/www.vacilando.net/web/content/sites/vacilando.net/files/fm/files/other/20040321_trailscout.txt): failed to open stream: No such file or directory in /mnt/data-store/www/includes/common.inc(1697) : eval()'d code on line 5.
  • warning: highlight_file(): Failed opening '/mnt/stor1-wc1-dfw1/377854/www.vacilando.net/web/content/sites/vacilando.net/files/fm/files/other/20040321_trailscout.txt' for highlighting in /mnt/data-store/www/includes/common.inc(1697) : eval()'d code on line 5.

breadcrumb

TrailScout (old)

A cookie-based PHP script that displays a path of hyperlinks to previously visited pages on a website. For example "Vacilando.Org > Writing > PHP Scripts > TrailScout". It is also known as "cookie crumb trail". None of the similar programs I found around the Web was good enough, so I decided to write my own.

This system does not need to use a database. 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 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 maximum number of links to be stored (this is useful for large sites where trails tend to be too long).


Syndicate content