Forums Register Login

saesion

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
My pie came with a little toothpic holding up this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 591 times.
Similar Threads
How to invalidate portlet session on logout?
urgent help for session time out
Invalidating all sessions
Session invalidation
strange problem regarding session management in websphere 3.5.3
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:53:10.