Storing a user's information in a cookie can be really useful, but it can also be incredibly frustrating if it's not working! One of the most common mistakes made with cookies is sending them after some code has already been sent.
The code doesn't have to be substantial, a simple at the top of your document before the cookies will mess things up! You should always include your cookies BEFORE any code is sent to the browser.
No comments:
Post a Comment