What is a function that saves the page id? let me explain it for example I am in a lesson and want to save the current lesson,so when I came later to see where I left. Help me!
You can use
Session, session is an array that You can store information in it, You must save every
lesson_id in a data storage(like database) and can access information of user by its id.