Index: branches/REL1_3/phase3/RELEASE-NOTES |
— | — | @@ -10,6 +10,7 @@ |
11 | 11 | * When cookies are disabled, don't show login screen twice |
12 | 12 | * Install should no longer die when PHP is pre-configured to compress output |
13 | 13 | * Fixed bug that caused long Japanese pages to time out with Tidy active |
| 14 | +* When session.handler is set incorrectly, try automatic override to 'files' |
14 | 15 | |
15 | 16 | == Version 1.3.1, 2004-08-14 == |
16 | 17 | |
Index: branches/REL1_3/phase3/includes/User.php |
— | — | @@ -153,6 +153,10 @@ |
154 | 154 | global $wgSessionsInMemcached, $wgCookiePath, $wgCookieDomain; |
155 | 155 | if( $wgSessionsInMemcached ) { |
156 | 156 | require_once( 'MemcachedSessions.php' ); |
| 157 | + } elseif( 'files' != ini_get( 'session.save_handler' ) ) { |
| 158 | + # If it's left on 'user' or another setting from another |
| 159 | + # application, it will end up failing. Try to recover. |
| 160 | + ini_set ( 'session.save_handler', 'files' ); |
157 | 161 | } |
158 | 162 | session_set_cookie_params( 0, $wgCookiePath, $wgCookieDomain ); |
159 | 163 | session_cache_limiter( 'private, must-revalidate' ); |