I read in the MW 1.27.0 release notes that a lot of new stuff was added for session
handling, but I
don't understand what I need to change in my PHP to use the new session handler ??
Could you detail ??
Could that be why I am getting the session handling errors below after my fresh install of
MW 1.27.0 on
Windows ? Does anyone have MW 1.27.0 working on Windows ?
* Massive overhaul to session handling:
*
$wgSessionsInObjectCache<https://www.mediawiki.org/wiki/Manual:$wgSessionsInObjectCache>
is no longer supported and must be true, due to MediaWiki\Session\SessionManager.
$wgSessionHandler<https://www.mediawiki.org/wiki/Manual:$wgSessionHandler> is
similarly no longer used.
* ObjectCacheSessionHandler is removed, replaced with
MediaWiki\Session\PhpSessionHandler.
* PHP session handling in general ($_SESSION, session_id(), and so on) is
deprecated. Use MediaWiki\Session\SessionManager instead. A new config variable,
$wgPHPSessionHandling<https://www.mediawiki.org/w/index.php?title=Manual:$wgPHPSessionHandling&action=edit&redlink=1>,
is available to cause use of $_SESSION to issue a deprecation warning or to cause most PHP
session handling to throw exceptions.
* Deprecated UserSetCookies hook. Session-handling extensions should generally be
creating a custom subclass of CookieSessionProvider. Other extensions messing with cookies
can no longer count on user data being saved in cookies versus other methods.
* Deprecated UserLoadFromSession hook, extensions should create a
MediaWiki\Session\SessionProvider.
* The User cannot be loaded from session until after Setup.php completes. Attempts
to do so will be ignored and the User will remain unloaded.
* CSRF tokens may be fetched from the MediaWiki\Session\Session, which uses the
MediaWiki\Session\Token class.
Here's my stack trace of failure.
I don't understand what to do with it, but if you do, please write back.
Exception encountered, of type "InvalidArgumentException"
[26551a8b219289e75be6de8a] /test1270/index.php?title=Main_Page InvalidArgumentException
from line 194 of I:\wwwroot-basp\test1270\includes\session\SessionManager.php: Invalid
session ID
Backtrace:
#0 I:\wwwroot-basp\test1270\includes\session\SessionManager.php(126):
MediaWiki\Session\SessionManager->getSessionById(string, boolean, WebRequest)
#1 I:\wwwroot-basp\test1270\includes\Setup.php(745):
MediaWiki\Session\SessionManager::getGlobalSession()
#2 I:\wwwroot-basp\test1270\includes\WebStart.php(137): require_once(string)
#3 I:\wwwroot-basp\test1270\index.php(40): require(string)
#4 {main
thx,
L
Show replies by thread