Page 1 of 1
MediaWiki won't keep me logged in
Posted: Fri Feb 23, 2007 12:40 pm
by Luke
Has anybody else had this problem with mediawiki? I log in, and then it tells me I'm logged in, but as soon as I click onto another page, I'm logged out again. If I select "remember me" it will let me move about logged in, but as soon as I try to edit anything, it tells me it has session loss.
I'm on the newest stable version.
Versions
Posted: Fri Feb 23, 2007 1:32 pm
by veridicus
I haven't seen this issue with Mediawiki, but with other software when combined with MySQL and PHP 5. In some instances the wrong driver is being used and updates are failing with no errors reported. Exactly which versions of MySQL and PHP are you using?
Posted: Fri Feb 23, 2007 1:33 pm
by RobertGonzalez
If they are using IP based session tracking then there is a chance that an ISP that shuffles IPs could be causing it.
Posted: Fri Feb 23, 2007 1:42 pm
by Luke
not sure on the versions... I'll have to get back to you.
I just called my hosting company to have them double check the permissions on the session directory and haven't heard back yet.
Posted: Fri Feb 23, 2007 1:43 pm
by Chris Corbyn
I've never used mediawiki, but are you using it over HTTPS by any chance?
Posted: Fri Feb 23, 2007 3:51 pm
by Luke
no
Posted: Fri Feb 23, 2007 4:21 pm
by Chris Corbyn
Hmm... How weird.
Does it require a database? If it does, is that DB connection/permissions working? (I'm think about session_set_save_handler() in case you're wondering why the odd question!).
Posted: Fri Feb 23, 2007 4:42 pm
by Luke
no not at all. I was thinking the same thing. Not that either. I got an email back from my hosting company saying the "fixed it" which leads me to believe they messed up the permissions and were trying to get away with not telling me about it. This stuff seems to happen a lot on this host.
EDIT:
OK I just got this response after asking what the problem was:
We just had to create a session folder that is accessible to your user and then edit the php.ini to use that folder. The default installation has it set to a folder that you do not have access to. It is a pretty common issue. Let us know if you have any other questions or concerns. Thank you.
hmm... was accessible to me yesterday...

Posted: Fri Feb 23, 2007 5:17 pm
by Chris Corbyn
The Ninja Space Goat wrote:We just had to create a session folder that is accessible to your user and then edit the php.ini to use that folder. The default installation has it set to a folder that you do not have access to. It is a pretty common issue. Let us know if you have any other questions or concerns. Thank you.
The default install uses /tmp as a temp folder for sessions

/tmp/ is writable to monkeys and madmen.
Posted: Fri Feb 23, 2007 5:38 pm
by Luke
incompetant bastards