title: How to redirect to index page when user is not logged using Servlet?
body: <p>how to redirect to a login page if the user is not logged in using servlet.</p>
  
  <p>I have a login page user logs in using that and goes to home page,after navigating the user clicks on logout and just hits on back button in browser now the page goes to previously visited page, how to redirect the user to login page when using servlet?</p>
  
  <p>thanks for the help and continued support</p>