title: Session Management in iPhone
body: <p>I need to manage server sessions in iPhone. As I researched there are many ways. One way is to use the apple native method calls by make use of the NSURLConnection and NSHTTPCookieStorage classes. However using the 3rd party libraries like ASIHttpRequest can also be helpful cos it already has implemented the above scenarios. So what will be the best approach for me to maintain the server session in my iPhone. I need to track the following,</p>
  
  <p>1) Login, Logout mechanisms in server.</p>
  
  <p>2) Sever session timeout. </p>
  
  <p>Also does this cookie work as a normal browser cookie? Does it get invalidated after the life time of cookie has expired?</p>
  
  <p>Regards,</p>
  
  <p>Dilshan</p>