Click here to Skip to main content
16,018,637 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my web application has certain pages.
I need to load the page which is closed. Means when we close the browser. And after some time
open this website, then showing a popup with "You need to resume to last session". If ok then go to expected page(last used page). How can this implement.

I have used Session variables ,It is working in close tab case only.
Posted

1 solution

You can use Cookies to store the last used page.
Or if you are creating web pages that allow users to edit content (like wordpress) you can save your working session into server database.
 
Share this answer
 
Comments
vipinsethumadhavan 28-Oct-13 3:25am    
I have used Cookies, It is working in mozila firefox. But not in Google chrome and IE.
I have no option to use database for this situation. When I closed Google chrome browser and reopen this page ,then cookie value is null. code as
HttpCookie _userinforead = Request.Cookies["UserInfo"];
here _userinforead is null. I set this value after this line , So when reload page case it is working properly

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900