I need to get an anchor tag to delete a session in php + log the user out of Facebook. Before I used Facebook connect, I was using this php code to destroy the session:
if(isset($_GET['logoff'])){
$_SESSION = array();
session_destroy();
header("Location: /");
exit;
}
And this for the anchor tag:
<a href='?logoff'>Log Out</a>
I now need the same anchor tag to go to the $logoutUrl + destroy the session.