* (bug 6504) Allow configuring session name with $wgSessionName
authorRob Church <robchurch@users.mediawiki.org>
Tue, 4 Jul 2006 04:20:14 +0000 (04:20 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Tue, 4 Jul 2006 04:20:14 +0000 (04:20 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/Setup.php

index 9375cb7..3e8b512 100644 (file)
@@ -638,6 +638,7 @@ Some default configuration options have changed:
 * (bug 6530) Update to Indonesian localisation (id) #25
 * (bug 6523) Fix SVG issue in rebuildImages.php
 * (bug 6512) Link to page-specific logs on page histories
+* (bug 6504) Allow configuring session name with $wgSessionName
 
 == Compatibility ==
 
index d333e0f..9e5028b 100644 (file)
@@ -1106,6 +1106,9 @@ $wgCookiePath = '/';
 $wgCookieSecure = ($wgProto == 'https');
 $wgDisableCookieCheck = false;
 
+/** Override to customise the session name */
+$wgSessionName = false;
+
 /**  Whether to allow inline image pointing to other websites */
 $wgAllowExternalImages = false;
 
index 469a691..1ef83cc 100644 (file)
@@ -126,9 +126,8 @@ if ( $wgDBprefix ) {
 
 # If session.auto_start is there, we can't touch session name
 #
-if (!ini_get('session.auto_start')) {
-       session_name( $wgCookiePrefix . '_session' );
-}
+if( !ini_get( 'session.auto_start' ) )
+       session_name( $wgSessionName ? $wgSessionName : $wgCookiePrefix . '_session' );
 
 if( !$wgCommandLineMode && ( isset( $_COOKIE[session_name()] ) || isset( $_COOKIE[$wgCookiePrefix.'Token'] ) ) ) {
        wfIncrStats( 'request_with_session' );