php facebook sdk logout not working

Codeigniter doesnot have native PHP sessions.

// Destroy CodeIgniter Session
$this->session->sess_destroy();

// Destroy Facebook Session using Facebook function
$this->facebok->destroySession();

// Maybe even destroy all native sessions as overkill
session_destroy();

Advertisements