title: Launch & restore session of safari from application in iOS
body: <p>My use case is such that I want to launch my app from safari and back to SAME SESSION of safari from my application.
  Step 1: </p>
  
  <ul>
  <li>Launch my app from safari browser [Able to achieve it successfully]</li>
  </ul>
  
  <p>Step 2:</p>
  
  <ul>
  <li>Launch safari by maintaing the same session from where the app was launched [In step 1]</li>
  </ul>
  
  <p>How to achieve Step 2? </p>
  
  <p>the code below is to launch safari</p>
  
  <pre><code>NSString *strurl = @"http://www.google.com"
  NSURL *url = [NSURL URLWithtring:strurl];
  [[UIApplication sharedApplication] openURL:url];
  </code></pre>
  
  <p>NOTE: the code above will launch the safari for the specified URL.</p>
  
  <p><strong>- How do I launch the safari by restoring the previous session?</strong></p>
  
  <ul>
  <li>Is there any possibility of safari sending me the unique ID of the page when I launch an app from it so that when I try to launch safari back from my app, it would be useful.[Just a vague idea]. </li>
  </ul>