title: Authentication filter to prevent user from going to login page if he is already logged in
body: <p>I want to prevent user from going back to Login page if he already logged in</p>
  
  <pre><code> if (req.getRequestURI().indexOf("Login.jsp") != -1 || req.getRequestURI().indexOf("LoginE.jsp") != -1) {
  
                     System.out.println("trtying to go to login");
  
                   //what should I write here to redirect the user to the page he was already in ??
               }
  </code></pre>