I am trying to figure out the best way to do a little something...
I want to have a little section on each page that will display the last x pages the user has visited on my site, as links...
Sessions may be less code than cookies, but both have their drawbacks...the problem I'm seeing is making a kind of an array to do it all with a limit that can be changed (one day I may want to display the last 5 pages they visited, or the last 20...should be able to do that as easily as possible). Also, how would I go about setting the current page as one of the visited pages (but not displaying it in the list of visited pages), and when setting the current page, knocking off the oldest page if it is higher than the x amount I want to show?
Any ideas would be apreciated.