Advantages of maintaining recently visited pages using cookies :

Steps to maintain visited page links with Cookies

Install jquery-cookie plugin :

< script src = "/js/jquery.cookie.js" ></ script >

jQuery code to set Cookie :

I have already written an article on How to display visited Page Links with Cookies and JavaScript . Now I am going to do same thing with jQuery. Here to maintain history of visited pages we need Cookies. Carhartl has written one jquery-cookie plugin to maintain Cookies with jQuery. Download jquery-cookie plugin at https://github.com/carhartl/jquery-cookie 1. Available for both authenticated and un-authenticated users.2. No need to maintain data at server side.3. Cookies does have high browser support.1. Maintain page views history in "history" Cookie2. Check whether "history" is null or not.3. If "history" Cookie is null then create one array and push present web page URL into that array.Save the array as "history" Cookie.4. if "history" Cookie is not null then display the visited page links.Check the present web page URL is there or not in the Cookie. If it is not there then insert it into the Cookie.