Click here to Skip to main content
15,890,399 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
example of google crome,mozila session data store in browser then broswer completely closed session is destroyed and problem is how to get session data when open browser then show ?

helpp me
Posted

1 solution

Simple: it's not stored in the Session - the Session is stored at the Server, and never leaves it. Session data is lost when the session closes - which can happen before the browser (or the page the browser is displaying) is closed.

If you want to close the browser and not loose data then you have two options:
1) Cookies. These are stored on the Client and can be accessed by the Server.
2) Database. If you user must log into your site, you can store information against his user ID and restore it form there.
 
Share this answer
 

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