title: How to create and manage session in iphone app?
body: <p>I have an application which uses wcf web service and after successful login, i want to activate a session of 10 minutes. If user is idle or app is in background for 10 minutes then session should expire and app should ask for login details again. </p>
  
  <p>I have used keychain for storing username and password and it works But i want to add the session so that user is redirected to main page if session is not expired and to the login page if session is expired... </p>
  
  <p>I know this is repeated question but i had to write it since i am not getting proper answer from other questions. Please help..</p>