title: logout with basic authentication without closing webbrowser like banking sites will display
body: <p>I need to leave the application after some time of inactivity. </p>
  
  <p>I tried using <code>session.invalidate();</code> but it is not working as I am using <em>basic authentication</em> and I redirected to a JSP page where it asks for login again.<br>
  But it is not asking any login credentials while users directly logging in into the application. The only way to logout with basic authentication is to close the Webbrowser.<br>
  I need an API such that after inactivty, say 10 mins, it should redirect to one JSP page without closing the browser. E.g. like banking sites which display "session expired, please login again".</p>