Index: trunk/phase3/includes/User.php |
— | — | @@ -155,6 +155,10 @@ |
156 | 156 | global $wgSessionsInMemcached, $wgCookiePath, $wgCookieDomain; |
157 | 157 | if( $wgSessionsInMemcached ) { |
158 | 158 | require_once( 'MemcachedSessions.php' ); |
| 159 | + } elseif( 'files' != ini_get( 'session.save_handler' ) ) { |
| 160 | + # If it's left on 'user' or another setting from another |
| 161 | + # application, it will end up failing. Try to recover. |
| 162 | + ini_set ( 'session.save_handler', 'files' ); |
159 | 163 | } |
160 | 164 | session_set_cookie_params( 0, $wgCookiePath, $wgCookieDomain ); |
161 | 165 | session_cache_limiter( 'private, must-revalidate' ); |