Invalidating session in javascript

6854933580_2c8b688306_z

You may be able to artifically create a notification when the browser closes using the javascript on Unload() command, but this isn't a great idea as many people disable that command due to is being used to create advertising popups.

Originally posted by Pete Harris: You may be able to artifically create a notification when the browser closes using the javascript on Unload() command, but this isn't a great idea as many people disable that command due to is being used to create advertising popups.

The Http Session Binding Listener interface is implemented by the classes whose objects need to receive notifications whenever they are added to or removed from a session.

We do not have to inform the container about such objects explicitly via the deployment descriptor.

Once you invalidate the session , how can a user do a back and refresh and access the same ( already invalidated ) session..??

Output: while opening display page, all the attributes are getting displayed on client (browser).If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments.Thank you This message contains information that may be privileged or confidential and is the property of the Capgemini Group.Hi, Can anyone tell me how to logout a user (invalidate his Session) when auser directly closes his browser window. Regards, Sahil Gupta Extn : 233Email : [email protected]******************************************************************Net Edge Computing Global Solutions Private Limited. Ifyou are not the addressee or authorized to receive this for theaddressee, you must not use, copy, disclose or take any action based onthis message or any information herein. 201-301Tel # 91-120-2423281, 2423282Fax # 91-120-2423279URL http// message may contain confidential and/or privileged information.I initially thought "no, since the browser doesn't notify the server-side, there is no way to invalidate the session on browser close." But this didn't make sense when I thought of it. [ February 10, 2003: Message edited by: Mike Curwen ] I've got another opinion: It's not possible.

You must have an account to comment. Please register or login here!