I'm trying to develop an online strategy tick-based game using php and mySQL. I'm using cookies to keep track of users logged in, one for the password and one for the username. The trouble is, when you load up a page, the values out of mySQL are not displayed, you have to refresh first. When the page refreshes, everything is fine. Why is this happening? Is there a way around it?
Thanks very much for any help