Created
September 4, 2014 12:46
-
-
Save shohan4556/ffa171c32749136d879b to your computer and use it in GitHub Desktop.
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 | |
session_start(); //starts the session | |
session_unset(); // removes all the variable in the session | |
session_destroy(); //destroy the session | |
if (!$_SESSION['email']) { | |
echo "successfully Loged out <br/>"; | |
# code... | |
} else { | |
echo "Error Occured!! <br/>"; | |
# code... | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment