I am trying to clear the HttpSession if the consumer close the browser window. I dont know how to do it, Please help me anyone
Thanks & Regards Chakri
if you close the browser it is already clear the session
but if you want to force to clear the session
usesession.invalidate(); or if you want to remove specific session use session.removeAttribute("");
session.invalidate();
session.removeAttribute("");