Hi to all! I'm trying to access to the Session Object thru javascript, just like in a jsp: session.setAttribute(name, value); and session.removeAttribute(name); With this java code you access to the active session opened with thru your navigator, but now I need to access to these attributes(cookies) thru javascript to remove them (session.removeAttribute(name)), but I don't know if it is possible... Would anyone like to help me? Any hint will be great! Thanks in advance, Nancy.
Yuriy Fuksenko
Ranch Hand
Joined: Feb 02, 2001
Posts: 411
posted
0
You can not access session object through JavaScript. All you could do, is use JavaScript to submit a request to a JSP or Servlet - and it wil clean a session or provide you a value. By the way, what are you trying to do? May be keeping objects in request instead of session will work?