Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Logout of Facebook PHP SDK 4.0.x session
<?php
// start session
session_start();
// kill the session
session_destroy();
// redirect back to website home
header( 'Location: http://yourwebsite.com/login' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.