Thursday, 29 November 2007

Cookies!

The login script has been altered again. In the course of fixing the login code earlier, I added more error reporting and noticed the very next day that every log in was throwing one of the errors, even if the login was successful. Obviously this wasn't correct, so I sat down tonight and fixed it again.

It was a problem with sending the cookie-setting headers and the way the main script reads them, nothing too serious but it was worth fixing. The game also now reacts in a more sensible way for people with cookies turned off, and if you delete a cookie mid-session or fake a cookie in an attempt to log in as someone else.

All this talk of cookies is making me hungry...

No comments: