From: Domas Mituzas Date: Mon, 26 Dec 2005 13:08:06 +0000 (+0000) Subject: session statistics live patch X-Git-Tag: 1.6.0~877 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=97414f12eebd4bedebf7b6040a8efd5111c7e5c1;p=lhc%2Fweb%2Fwiklou.git session statistics live patch --- diff --git a/includes/Setup.php b/includes/Setup.php index a77f8537fd..896ef07c69 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -88,6 +88,7 @@ wfProfileIn( $fname.'-misc1' ); $wgIP = false; # Load on demand $wgRequest = new WebRequest(); +$wguname = @posix_uname(); # Useful debug output if ( $wgCommandLineMode ) { @@ -131,9 +132,11 @@ if ( $wgDBprefix ) { } if( !$wgCommandLineMode && ( isset( $_COOKIE[session_name()] ) || isset( $_COOKIE[$wgDBname.'Token'] ) ) ) { + wfIncrStats( 'request_with_session' ); User::SetupSession(); $wgSessionStarted = true; } else { + wfIncrStats( 'request_without_session' ); $wgSessionStarted = false; }