No, sessions can't be accessed by javascript directly. It's stored on server, while javascript is running on client.
But can be done indirectly, e.g., store it in a hidden filed, submit it to the server, and retrieve and assign the values in hidden filed to session.
Hope it helps.
Raymond Wen ...
All-Star
32101 Points
3764 Posts
Re: How can I set session variables with JavaScript
Jan 17, 2007 05:13 AM|LINK
But can be done indirectly, e.g., store it in a hidden filed, submit it to the server, and retrieve and assign the values in hidden filed to session.
Hope it helps.