Invalidating a session in javascript

Posted by / 03-Aug-2017 19:49

Invalidating a session in javascript

It works fine if directly I click on browser close button.If I click on some in the page then window.onbeforeunload is getting triggered and session gets invalidated.

, what it takes me to a new window showing a chart, just for the purpose of display some graphics.

I write all the above headers and then invalidate the session.

after performing logout operation the page is forwarded to login page,then i press back button of the browser and it shows the dashboard or last page from where i perform the logout help or should post another question for it ?

Hi akhilesh tripathi welcome to Javaranch, Is this a JSP question? one of the moderators will move it to its proper place.

I think this can be done using Javascript, not sure.

invalidating a session in javascript-36invalidating a session in javascript-28invalidating a session in javascript-22

See Java World's handling of this for more information.

One thought on “invalidating a session in javascript”