title: fbconnect logout is not working perfectly
body: <p>i have integrated Fbconnect in LoginViewController.I want to logout the session from another view controller .. How i can do this ? </p>
  
  <p>I tried this ..</p>
  
  <pre><code>LoginViewController *obj1 = [[LoginViewController alloc] init];     
  [obj1._session logout];
  [obj1._session.delegates removeObject: self];
  </code></pre>
  
  <p>It  removing the session..But wen i go to LoginViewController the button is showing logout.But when i quit application and run it, the image is  updated.</p>
  
  <p>In LoginViewController i have </p>
  
  <pre><code>@interface LoginViewController : UIViewController  &lt;FBDialogDelegate, FBSessionDelegate, FBRequestDelegate&gt;{
  
      IBOutlet UITextField *txtUsername;
      IBOutlet UITextField *txtPassword;
      IBOutlet UILabel *lblMessage;
      IBOutlet FBLoginButton* _loginButton;
      FBSession* _session;
  
  }
  
  @property (nonatomic, retain) FBSession *_session;
  </code></pre>
  
  <p>and am synthesizing it  @synthesize _session;</p>
  
  <p>....What else i have to do ?</p>
  
  <p>Somebody please help me..am very new to Iphone application and objective c</p>