469,345 Members | 6,175 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,345 developers. It's quick & easy.

How to update Session Variable using JS

Is
there a way of updating session variable in JS.

May 10 '07 #1
2 9020
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
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.