Reputation:
I have some VB code, which I can no longer use (long story). It goes like this:
Session.Contents("LetterVariables") = Nothing
Is there a javascript equivalent?
Thanks,
Jason.
Upvotes: 1
Views: 735
Reputation: 499092
There is no direct equivalent, since javascript runs client side, not server side.
You can use cookies for small amounts of data, and with HTML you can use local storage. These allow you to share data across pages (on the same domain) using javascript, but unless using session cookies or coding specifically for it, these will persist beyond a session.
Upvotes: 3
Reputation: 27441
You have several options here:
Upvotes: 1