Page MenuHomePhabricator

login problem and my solution
Closed, InvalidPublic

Description

Author: lthaete

Description:
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.


Version: 1.5.x
Severity: normal

Details

Reference
bz5281

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:10 PM
bzimport set Reference to bz5281.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Doesn't belong here, but thanks. Consider adding it to the FAQ or something?