PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hey,
I'm setting a cookie on the user that's logging in so next time he visits the site his username is saved in the box.
I'm trying to show the cookie by doing this:
Nothing is found in $_COOKIE['Username']. Since you haven't placed quotes round the value attribute, it's picking up the following text.
If you're expecting the cookie data to be there on the same page request where the cookie is set, you won't see it until the browser requests the page again. That is if the cookie set at all.