title: How to set my web view loaded with already login user -iPhone
body: <p>In my app iam using web view with URL:@"http://www.gmail.com/".</p>
  
  <ul>
  <li><p>This web view was loaded when i clicked a button in the main page / home page</p>
  
  <pre><code>(IBAction)webClick:(id)sender
   {
  MailViewController *mail = [[MailViewController alloc]initWithNibName:@"MailViewController" bundle:nil];
  [self.navigationController pushViewController:mail animated:YES];
  }
  </code></pre></li>
  <li><p>Then the web view was loaded, i used code like thin this in mail view:</p>
  
  <pre><code>-(void)viewDidLoad
  
  {
      [super viewDidLoad];
      NSString *urlAddress = @"http://www.gmail.com/";
      NSURL *url = [NSURL URLWithString:urlAddress];
      NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
      [webView loadRequest:requestObj];
  }
  </code></pre></li>
  </ul>
  
  <p>Here the gmail opened with login page. we need to enter username &amp; password.</p>
  
  <p>What i want is,</p>
  
  <ul>
  <li><p>if we already login into my account through gmail application..</p>
  
  <p>The loaded view directly loades my mail, instead of login page.</p></li>
  <li><p>if i didn't already loged in, then show an alert as please login.</p></li>
  </ul>
  
  <p>How to do it?</p>
  
  <p>Please help me.
  Thanks in advance.</p>