I have blog with ten articles. I already have login and registration system in my blog. When the user logged in and read some article left out the website. When he revisited the site I want the user to redirect to where he left. example if the user read 4th article and left, when he revisit I want to redirect the user to that same 4th article. I'm using Node express as backend. EJS as the frond end. I'm looking for a complete explanation of this concept because I'm very new to these type of concepts.
CodePudding user response:
You can save that inside cookies if you are familiar with it or you can just define something like "lastVisitedBlog" inside your database to keep this data.