• Post Reply Bookmark Topic Watch Topic
  • New Topic

saesion  RSS feed

 
vivek sivakumar
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good morning everyone!
well i wanted to invalidate the sessions so i tried out sessions.invalidate () command inside a javascript code onClick(){
sessions.invalidate();
}
what happens is that the whole of sessions get invalidated , nothing works !!! how can i perform this onClick() function successfully (only when i click the button this sessions should be invalidated)!!! im a new bee and please advice.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are a little mixed up. A servlet session lives on the web server, while Javascript executes on the browser. You have to execute Java methods in a servlet or JSP to invalidate a session.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!