To invalidate a session, my teacher passed the following code:
HttpSession session = request.getSession(false);
if (session!=null){
session.invalidate();
}
But after logout, when I click Back in the browser, I can retrieve the same one I had logged in to. How do I delete it? Thank you in advance!