title: How to maintain session timeout in core java application?
body: <p>I know there are different mechanism to maintain session in java web application like, in servlet   </p>
  
  <ol>
  <li>URL rewritting</li>
  <li>Hidden form fields</li>
  <li>Cookies</li>
  <li>HTTP Session</li>
  </ol>
  
  <p>But I don't have any idea how we can maintain any session in core java application (i.e. Standalone application). So can anyone please help me out from finding some of my question,</p>
  
  <p>How to maintain a timeout session for a specific user in standalone application? Please try to give some code for explanation</p>