title: Delphi XE5 REST/Android Client "Session has expired"
body: <p>I have a <code>REST Server</code> with an <code>Android Client</code>, both on <code>Deplhi Xe5</code></p>
  
  <p>The android client succesfully connects with the Rest server.
  In my server I have a <code>TDSHttpWebDispatcher</code> with <code>SessionTimeout</code>=1200000 (20 min)</p>
  
  <p>So when the user in android doesn't use the app for more than 20 min, 
  gets the "Session has expired" error when do a request to the REST server.</p>
  
  <p>I already set the <code>PresserveSessionId=False</code> in the <code>DSRestConnection</code> in the Client app, so there is no sessiontimeout error, but it makes the app slower, because for every request to the REST server it creates a new session.</p>
  
  <p>I wanna keep the <code>PresserveSessionId=True</code> for better performance, and when the session expires (after 20 min) catch the "Session has expired" error and request for a new session for the client</p>
  
  <p>How can i achieve that?</p>
  
  <p>Thanks</p>
  
  <p>Sorry for my english!, hope it is readable</p>