title: How does one enable authentication across a Django site, and transparently preserving any POST or GET data?
body: <p>Suppose someone is editing a HTML form, and their session times out, how can one have Django re-authenticate that individual without losing the content the user had entered into the form?</p>
  
  <p>The snippet <a href="http://www.djangosnippets.org/snippets/136/" rel="nofollow noreferrer">Django Snippets: Require login across entire site</a> suggests how to do site-wide authentication, but I expect it will lose the GET component of the string (namely because request.path does not include it), and definitely lose the POST data.</p>
  
  <p>How can one preserve the POST and GET across those inconvenient timeouts. I find that finessed web-sites tend to handle this intelligently, and I'd like to be able to do it in Django (as would others, I imagine!).</p>
  
  <p>Thoughts would be appreciated. Thank you.</p>