Tuesday, 15 June 2010

wiki - MediaWiki 1.22 - Session Storage -



wiki - MediaWiki 1.22 - Session Storage -

i trying utilize mysql session storage mediawiki.

i've added:

$wgsessionhandler = 'session_mysql';

to "localsettings.php", can't find session table in associated mysql db.

if set $wgsessionhandler = 'session_mysql';, inquire php internally manage sessions mysql backend instead of default file backend. in case, have install , configure mysql backend (by searching found https://github.com/repoforge/rpms/blob/master/specs/php-pecl-session_mysql/php-pecl-session_mysql.spec bundle seems quite old). in particular, have take host, user, database , table store sessions.

instead, request, suggest using mediawiki session cache manager mysql backend. same thing previous solution, integrated in mediawiki. accomplish behaviour, write in localsettings.php:

$wgsessionsinobjectcache = true; # mw internal session cache management # takes precedence on php management $wgsessioncachetype = cache_db; # see documentation other backends $wgobjectcachesessionexpiry = 3600; # default lifetime of sessions

it seems doesn’t work sqlite, works mysql. in cache, can inspect table objectcache there keys named wikiid:session:sessionsid among other possible cached objects.

mediawiki wiki

No comments:

Post a Comment