Marshy Posted November 28, 2007 Report Share Posted November 28, 2007 Hi All,I am having some major problems using cookies. Whilst developing the site on localhost I had no problems.I have configured my firewall to forward http traffic from a public IP to my machine and cookies just will not work.I have created a simple test page which consist of this: <?php $value = 'something from somewhere'; setcookie("TestCookie", $value, time() + 3600); // Print an individual cookie echo $_COOKIE["TestCookie"] . "<br>"; echo $HTTP_COOKIE_VARS["TestCookie"] . "<br>"; // Another way to debug/test is to view all cookies echo "<pre>"; print_r($_COOKIE); echo "</pre>"; ?> But no cookie is created.Can anybody tell me why? Is it related to my firewall? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.