Setting this script on your website will give your visitors the great opportunity to see their last visited pages of your website. The visited pages links are created by using DOM and JavaScript. Script is working by the Cookies (the visited pages are kept for example about a month – the period is decided by you). The quantity of the shown links are set by you. So, this is a very effective and comfortable script, that will be very pleasant for the visitors of your website.
How To Use:
1. Copy the the_last_visited_pages.js and the_last_visited_pages.css into your website directory.
2. Write in the <head></head>
<link rel=”stylesheet” href=”the_last_visited_pages.css” type=”text/css” />
<script src=”the_last_visited_pages.js” type=”text/javascript”></script>
3. Set <div id=”the_last_visited_pages”></div> where you want to show the last visited pages of the visitor.
4. Add <script type=”text/javascript”>start_the_last_visited_pages();</script> just after </body>
How To Customize:
You can use CSS to style it. Edit the code in the_last_visited_pages.css
Version:
1.0
License:

The Last Visited Pages by Ruben Sargsyan is licensed under a Creative Commons Attribution 3.0 Unported License.
Based on a work at rubensargsyan.com.
Donate:
If you find this plugin useful to you, please consider making a small donation to help contribute to further development. Thanks for your kind support!








I like the code that you have posted but it poses a question, have you tried using Session Cookies instead of Client Cookies?
David,
This is browser based code, so we can’t use Session Cookies by php.
Thanks.