I have a logout page with these codes written in it.
HttpSession session = request.getSession(false);
if(session != null)
session.invalidate();
request.getRequestDispatcher("/index.jsp").forward(request,response);
However after clicking the log out button and after redirecting to index.jsp, I can still access the previously visited links using the back button of the browser. How do I make my way around with this? That after I have logged out, I will always be redirected into the index.jsp (my login page) unless I log in again? Help?