From: Brion Vibber Date: Mon, 15 Nov 2004 12:54:45 +0000 (+0000) Subject: Fix opening of session for users visiting with saved password token X-Git-Tag: 1.5.0alpha1~1318 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=98e82e9c605d633c9bc2a79c5d47eb7e2592c3dc;p=lhc%2Fweb%2Fwiklou.git Fix opening of session for users visiting with saved password token --- diff --git a/includes/Setup.php b/includes/Setup.php index 38aef5704f..d096fda718 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -183,7 +183,7 @@ if( $wgUseMemCached ) { wfProfileOut( $fname.'-memcached' ); wfProfileIn( $fname.'-SetupSession' ); -if( !$wgCommandLineMode && ( isset( $_COOKIE[ini_get('session.name')] ) || isset( $_COOKIE[$wgDBname.'Password'] ) ) ) { +if( !$wgCommandLineMode && ( isset( $_COOKIE[ini_get('session.name')] ) || isset( $_COOKIE[$wgDBname.'Token'] ) ) ) { User::SetupSession(); $wgSessionStarted = true; } else {