Created
March 18, 2013 12:01
-
-
Save kamituel/5186712 to your computer and use it in GitHub Desktop.
Mozilla Persona's IdP impl helper file.
This file contains hidden or 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
function activeSessionFor(email) { | |
<?php | |
if ( isset($_SESSION['email']) && strlen($_SESSION['email']) > 0 ) { | |
echo "return true;"; | |
} else { | |
echo "return false;"; | |
} | |
?> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment