https://bugzilla.wikimedia.org/show_bug.cgi?id=26360

--- Comment #4 from Brion Vibber <br...@pobox.com> 2010-12-27 02:03:48 UTC ---
It kind of looks to me like this error might be coming from PHP's memcached
module's session handler, not from MediaWiki's:

http://www.php.net/manual/en/memcached.sessions.php

When using the session handler provided by PHP's memcached module, you
basically set a few settings in your php.ini:

session.handler = memcache
session.save_path = tcp://127.0.0.1:11211


With $wgSessionsInMemcached *enabled*, MediaWiki takes over the session handler
settings completely, overriding whatever's configured. But with it *disabled*
(as default), MediaWiki will override session.save_handler to whatever's set in
$wgSessionHandler unless it's null.

By default, $wgSessionHandler is set to "files" -- which is normally the
default session handler on most PHP setups.

As a result, MediaWiki is changing your session settings *FROM* the PHP
memcached module *TO* files, which gets very confused with a session path
that's set to "tcp://blah". :)

Really we probably should *not* be messing with the session handler settings
unless we're taking them over entirely. I think we initialized it to files back
in the day because there were a lot of bizarrely broken shared hosting systems
out there that basically just had totally broken session stuff, but that might
have just been a voodoo fix.

There are probably a few other old bug reports on the subject of the session
handlers being overridden.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to