Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

If I logout in my application the user is logged out in my application but not in Facebook.

When I login again via Facebook the same user cookies are used to login again - I need a different user to login after I logout.

The following logout function is used in my application:

 public function logout()
        { 
        session_destroy();

        $this->session->sess_destroy();

        $this->facebook->destroySession();  

        if ($this->facebook_user)
        { 

        $this->facebook->destroySession();  


        $logoutUrl = $this->facebook->getLogoutUrl(); 

        redirect($logoutUrl);   
        }



        redirect('con_home');   
    }
share|improve this question
i have problem in facebook logout. – Bruno Thileeban Mar 7 '12 at 7:24
That explains it. This should be migrated to StackOverflow – Anagio Mar 7 '12 at 9:16
@BrunoThileeban Unfortunately, your account is blocked from asking questions at StackOverflow. Please refer to What can I do when getting “Sorry, we are no longer accepting questions/answers from this account”? Off-topic questions posted here will be closed. – danlefree Mar 7 '12 at 11:14

closed as off topic by paulmorriss, Su', danlefree Mar 7 '12 at 11:09

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

Browse other questions tagged or ask your own question.