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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.