Created
July 24, 2013 20:32
-
-
Save linickx/6074260 to your computer and use it in GitHub Desktop.
example wordpress_logged_in for root-cookie
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 | |
# Either load WordPress : http://codex.wordpress.org/Integrating_WordPress_with_Your_Website | |
# or Manually define your url like... | |
$siteurl = "http://www.linickx.com/wordpress"; | |
define( 'COOKIEHASH', md5( $siteurl ) ); | |
$cookiename = "wordpress_logged_in_" . COOKIEHASH; | |
if (isset($_COOKIE[$cookiename])) { | |
echo "# Set!"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment