Session State Across Multiple Pages

Hello,

I have created a blogs webpage which allows users to create their accounts and post blogs. There is a page called “All Posts” where every post is posted and then there’s another page called " My Posts" which allows the user to view their own blogs only.

The function I want to integrate in this code is that whenever user moves from one page to another, for example if they go to my posts and then click on a post. The user then opens all posts page and then returns back to my post, the user should be able to see the main menu again, not the same opened blog.

Please help me out in this regard.