Is it possible to set session variables from javascript?
The short answer is no.
You can set cookies, but they're not quite the same.
You could also use AJAX to post back to a script on your server that will set the variables. Session variables exist only on the server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With