title: Applet. Session expires
body: <p>I have web application with applet and servlet. Servlet is secured using by defining <code>SecurityConstaint</code> section in web.xml.
   And applet have operations which going on very long time - about 1.5 hour. During this operation applet always send requests to servlet (using standard <code>HttpUrlConnection</code>). But after some time servlet returns <code>401 unauthorized</code> response code to applet. I think trouble with session expiring. So how I can solve this problem? </p>