Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created October 27, 2014 11:31
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