MediaWiki won't keep me logged in

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

MediaWiki won't keep me logged in

Post 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.
User avatar
veridicus
Forum Commoner
Posts: 86
Joined: Fri Feb 23, 2007 9:16 am

Versions

Post 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?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I've never used mediawiki, but are you using it over HTTPS by any chance?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

no
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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!).
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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. Image

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... :? :evil:
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

incompetant bastards
Post Reply