Skip to content

Instantly share code, notes, and snippets.

@joshcanhelp
Last active July 13, 2018 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshcanhelp/ba98f748747c7fd2ecdf54e73c6110f3 to your computer and use it in GitHub Desktop.
Save joshcanhelp/ba98f748747c7fd2ecdf54e73c6110f3 to your computer and use it in GitHub Desktop.
WP Config cookie test
// Put me at the top of wp-config.php for a test install
if ( ! empty( $_GET['auth0'] ) ) {
// Make sure we have all error reporting on
ini_set( 'display_errors', 1 );
ini_set( 'display_startup_errors', 1 );
error_reporting( E_ALL );
echo '<pre>' . print_r( $_COOKIE, TRUE ) . '</pre>';
echo '<pre>' . print_r( $_REQUEST, TRUE ) . '</pre>';
$state_val = rawurldecode( $_REQUEST['state'] );
$state_val = base64_decode( $state_val );
$state_val = json_decode( $state_val );
echo '<pre>' . print_r( $state_val, TRUE ) . '</pre>';
die();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment