title: Programmatically keep HTTP Session Alive without browser
body: <p>For one of our requirements I am talking between two servers using HTTP protocol. The interaction is long running, where a user might not interact with the other site for pretty long intervals.</p>
  
  <p>When they come to the page, the log in into the remote site. Every time user tried to interact with the remote site, internally I make a HTTP call (authetication is done based on sessionId). </p>
  
  <p>I was wondering if there is a way to also refresh the session and ensure that it does not expire.</p>
  
  <p>As per my limited understanding, browser handles this by passing keep-alive in header or cookie (which I don't understand completely). Can anyone suggest a programmatic way in Java to achieve keep-alive behavior</p>