snowman15 Posted November 5, 2007 Share Posted November 5, 2007 Hey my cookie isnt working for some reason. php page to set cookie $user="hello"; setcookie("username", $user, time()+3600,"/"); page in the same directory that reads cookie: echo $_COOKIE["username"]; it just simply wont output anything. What am i missing? Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted November 5, 2007 Share Posted November 5, 2007 just do session_start(); $_SESSION['username']; less complicated than cookies Quote Link to comment Share on other sites More sharing options...
teng84 Posted November 5, 2007 Share Posted November 5, 2007 check if your cookie is not disabled Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.