Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

problem with mediawiki cookies

anytime a user logs into our Wiki they get the following error: "This Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again." Even though the error displays, the user is actually logged in and can make edits as normal. If the user doesn't look closely they can't tell they are logged in and it's causing confusion I would be glad if anyone gives me a hint

like image 683
Mohammed Abdullatif Avatar asked Jul 18 '09 21:07

Mohammed Abdullatif


3 Answers

Wikimedia's advice is

Check to make sure PHP's directory for storing session data is writable. This directory can be found in the php.ini file under the session.save_path setting. Errors in this php.ini setting can also cause other problems.

... (and) make sure the Internet Guest Account (eg. IUSR_FOOBAR, nobody, or apache) has write permissions to the folder listed in the session.save_path variable of the php.ini file.

Source.

If you are using a hosting site you need to edit your php scripting configuration (php.ini). The page should have information on your web document root. If there is already a "tmp" folder created then use it. If there is not a tmp folder in your current set up create one that is NOT browseable by users and tell the php.ini file the location as directed above.

like image 184
Adrian Archer Avatar answered Nov 05 '22 06:11

Adrian Archer


For future reference... We just had a similar problem on Appropedia (same error, but couldn't log in at all). It turned out the temp directory was full. Cleared the temp directory, problem solved.

like image 34
Chris Watkins Avatar answered Nov 05 '22 07:11

Chris Watkins


It turned out the temp directory was full

In my case it was because the entire partition was full, needed more space.

like image 42
Niels Avatar answered Nov 05 '22 05:11

Niels