Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3160
add-session-name.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:22 PM
2014-11-21 21:22:48 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
add-session-name.diff
View Options
Index: includes/Setup.php
===================================================================
--- includes/Setup.php (revision 15178)
+++ includes/Setup.php (working copy)
@@ -129,7 +129,11 @@
# If session.auto_start is there, we can't touch session name
#
if (!ini_get('session.auto_start')) {
- session_name( $wgCookiePrefix . '_session' );
+ if ( $wgSessionName == '' ) {
+ session_name( $wgCookiePrefix . '_session' );
+ } else {
+ session_name ( $wgSessionName );
+ }
}
if( !$wgCommandLineMode && ( isset( $_COOKIE[session_name()] ) || isset( $_COOKIE[$wgCookiePrefix.'Token'] ) ) ) {
Index: includes/DefaultSettings.php
===================================================================
--- includes/DefaultSettings.php (revision 15178)
+++ includes/DefaultSettings.php (working copy)
@@ -1101,6 +1101,7 @@
* Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
* or ".any.subdomain.net"
*/
+$wgSessionName = '';
$wgCookieDomain = '';
$wgCookiePath = '/';
$wgCookieSecure = ($wgProto == 'https');
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2730
Default Alt Text
add-session-name.diff (1 KB)
Attached To
Mode
T8504: Allow configuring session name
Attached
Detach File
Event Timeline
Log In to Comment