Skip to content

Instantly share code, notes, and snippets.

@Jan-Bart
Created September 15, 2013 16:52
Show Gist options
  • Save Jan-Bart/6572452 to your computer and use it in GitHub Desktop.
Save Jan-Bart/6572452 to your computer and use it in GitHub Desktop.
<?php
$value = "This cookie resides in an iframe";
// Set a cookie
setcookie("iframeCookie", $value);
echo '<h1>Cookie test</h1>';
// Read the cookie
echo $_COOKIE["iframeCookie"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment