Created
October 27, 2014 11:31
-
-
Save niraj-shah/934fbfc8c264295be74f to your computer and use it in GitHub Desktop.
Logout of Facebook PHP SDK 4.0.x session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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