• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Accessing to Session object [urgent!]

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
reply
    Bookmark Topic Watch Topic
  • New Topic