I'm trying to change a cookie to whatever is submitted as a URL parameter called 'aid.' But once it's set the first time, I can't get it to overwrite it next time the 'aid' parameter is received. How do I make this work? Here is my code:
<?php if ("$aid" != "") { setcookie("aid", $aid, time() + 31536000, "/", ".mydomain.com", 0); } else { $aid = $_COOKIE['aid']; } ?>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php