Yay, I have my site back!

After upgrading to Wordpress 1.5 I found myself unable to login to the admin section. This has been going on for two days. I have not been amused.

Turns out it is because of a bug in IIS whereby cookie header information is discarded if it is written and then followed by the PHP header(location:) function. Because of this the login information cookie is never set and….no login.

The solution involves using a META REFRESH instead of the header() redirect. I posted some code to the WordPress bug reporting site. We’ll see what happens with it. Already other users are reporting that it works for them as well. Check out the steps involved in fixing this issue.

Leave a Reply