- Joined
- Oct 18, 2005
- Messages
- 230
- Reaction score
- 0
- Points
- 16
- Your Mac's Specs
- MacPro 3.1
Can someone tell me why this won't work? I can't understand why it won't install a cookie on my browser! I've tried Safari, Firefox and Opera and no luck on any of them!
The link is to a page which has been coded to show the value of the cookie but it doesn't display any value! When I check the cookies stored on my browser it isn't there either!
Any ideas as to why it's all going wrong!!!!!
Thanks guys!
Andy
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Cookie</title>
</head>
<body>
<?php
setcookie("test", 45, time()+(3600));
echo "This page has loaded correctly! But is thy cookie there!";
?>
<br />
<a href="cookie_read.php">Check that cookie!</a>
</body>
</html>
The link is to a page which has been coded to show the value of the cookie but it doesn't display any value! When I check the cookies stored on my browser it isn't there either!
Any ideas as to why it's all going wrong!!!!!
Thanks guys!
Andy