Hello,
Im trying to set a simple cookie for my website, however it doesnt seem to be working, any ideas??
Im using IE 6 and have cookies enabled in the broswer, i can also find the cookie on my system.
My code:
Im trying to set a simple cookie for my website, however it doesnt seem to be working, any ideas??
Im using IE 6 and have cookies enabled in the broswer, i can also find the cookie on my system.
My code:
PHP Code:
COOKIES.PHP
<?php
$value = "my cookie value";
// send a cookie that expires in 24 hours
setcookie("TestCookie",$value, time()+3600*24);
?>
COOKIESRET.PHP
<?php
// Print individual cookies
echo $_COOKIE["TestCookie"];
?>
Comment