Last modified: 2010-05-15 15:38:44 UTC
So I installed mediawiki the other day on a subdomain of my site the other day http://www.larry.analarry.com. When I logged in it would show me as logged in but when I want to another page I would no longer be logged in. After adjusting the cookie domain and reading instructions on how to install on souceforge I finally came across the problem. The session was created and the cookie was created and stored but the session data was not being written, I have come across this problem on projects I have created. I added session_write_close() to the end of the index.php page to force the writing of the session data to the session file. The problem is that the server was not able to write the session data before the script terminated. I'm not sure if where I put the session_write_close() is the best place but it fixed my login problem and I know this is a common problem on some servers. Anyways I wasn't sure where to share this so I added it here, I hope this helps.
Doesn't belong here, but thanks. Consider adding it to the FAQ or something?