Add debug log item for r42040

This commit is contained in:
Aaron Schulz 2008-10-13 19:13:54 +00:00
parent 0cc2da39da
commit 588e9233b5

View file

@ -805,6 +805,8 @@ class User {
$sId = intval( $_COOKIE["{$wgCookiePrefix}UserID"] );
if( isset( $_SESSION['wsUserID'] ) && $sId != $_SESSION['wsUserID'] ) {
$this->loadDefaults(); // Possible collision!
wfDebugLog( 'loginSessions', "Session user ID ({$_SESSION['wsUserID']}) and
cookie user ID ($sId) don't match!" );
return false;
}
$_SESSION['wsUserID'] = $sId;