Method To Store Data Until Browser Is Closed
is there any method (using JavaScript) how to store session until browser is closed? I wanted to use session cookie - when expires is not set the cookie is supposed to expire when
Solution 1:
You might be interested in sessionStorage
, localStorage
's little-known cousin. It should do exactly what you need--store variables in a session and clear them when the session is ended.
Post a Comment for "Method To Store Data Until Browser Is Closed"