What's wrong with this code?
setcookie("password",$wachtwoord,0, "/", ".thedomainname.com");
echo $_COOKIE['password']; //shows nothing
I am attempting to set a cookie and display its value?
What's wrong with this code?
setcookie("password",$wachtwoord,0, "/", ".thedomainname.com");
echo $_COOKIE['password']; //shows nothing
I am attempting to set a cookie and display its value?
Are you waiting for the next request before you examine $_COOKIE ?
$_COOKIE[] with that new cookie will be available only with next request
I tested this code, and worked correctly !
<?PHP
setcookie( 'Test' , 'Test' );
echo $_COOKIE['Test'];
?>