can't set cookie????
Posted: Wed Nov 12, 2003 2:20 pm
OK i've been going at this for hours now and I can't figure out what the problem is. I just want to set a cookie dammit!! hehe ok here's some code:
I have a cookie.php:
I have the cookie.php stored under http://blahblah.com/cookie.php
I manually type that address in and after that I go back to http://blahblah.com. This SHOULD work right??
But the cookie's not being set!! I've checked the temporary internet files and no cookie!
What am I doing wrong? Some help would be appreciated!
I have a cookie.php:
Code: Select all
<?php
$value = 'something from somewhere';
setcookie("testcookie", $value, time()+3600, '/');
?>I have the cookie.php stored under http://blahblah.com/cookie.php
I manually type that address in and after that I go back to http://blahblah.com. This SHOULD work right??
But the cookie's not being set!! I've checked the temporary internet files and no cookie!