title: HTTP Referer after 302 Redirect
body: <p>I am creating a website using Java servlets, and I have a page called LogIn. What I want to happen, is that once the user successfully fills out the login form, it returns them to the page that they were previously on.</p>
  
  <p>Now this works fine with a GET or a POST from another page, because the previous page is stored in the Referer header. But when I redirect (302) to the LogIn page (from a page that a user cannot access because they are not logged in), the Referer header is null.</p>
  
  <p>Is there any way to achieve what I want when the user is redirected to the LogIn page?</p>