How to update Session Variable using JS

D

Daz

Is
there a way of updating session variable in JS.

What do you mean by "session variables"? Are you referring to the
cookies on the client-side, or the session on the server-side?
 
T

Tom Cole

What do you mean by "session variables"? Are you referring to the
cookies on the client-side, or the session on the server-side?

Remember that javascript executes after the server side code is
complete, so it cannot set a session variable without making another
connection.

You may want to investigate using AJAX to make a connection to a
server side resource and have it update your session variable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,431
Latest member
ElyseG3173

Latest Threads

Top