471,872 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,872 software developers and data experts.

How to update Session Variable using JS

Is
there a way of updating session variable in JS.

May 10 '07 #1
2 9070
Daz
On May 10, 11:15 pm, Divya Khullar <khullar.di...@gmail.comwrote:
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?

May 11 '07 #2
On May 11, 11:06 am, Daz <cutenfu...@gmail.comwrote:
On May 10, 11:15 pm, Divya Khullar <khullar.di...@gmail.comwrote:
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?
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.

May 11 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Brian Conway | last post: by
9 posts views Thread by Greg Linwood | last post: by
20 posts views Thread by Janaka | last post: by
5 posts views Thread by ANTISPAM_garycnew_ANTISPAM | last post: by
8 posts views Thread by mantrid | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.