Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3501
sessioncookiesecure.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:30 PM
2014-11-21 21:30:58 (UTC+0)
Size
860 B
Referenced Files
None
Subscribers
None
sessioncookiesecure.diff
View Options
--- /tmp/GlobalFunctions.php 2007-01-24 12:46:02.000000000 +0100
+++ includes/GlobalFunctions.php 2007-01-24 12:52:48.000000000 +0100
@@ -2024,7 +2024,7 @@
* Initialise php session
*/
function wfSetupSession() {
- global $wgSessionsInMemcached, $wgCookiePath, $wgCookieDomain;
+ global $wgSessionsInMemcached, $wgCookiePath, $wgCookieDomain, $wgCookieSecure;
if( $wgSessionsInMemcached ) {
require_once( 'MemcachedSessions.php' );
} elseif( 'files' != ini_get( 'session.save_handler' ) ) {
@@ -2032,7 +2032,7 @@
# application, it will end up failing. Try to recover.
ini_set ( 'session.save_handler', 'files' );
}
- session_set_cookie_params( 0, $wgCookiePath, $wgCookieDomain );
+ session_set_cookie_params( 0, $wgCookiePath, $wgCookieDomain, $wgCookieSecure);
session_cache_limiter( 'private, must-revalidate' );
@session_start();
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3068
Default Alt Text
sessioncookiesecure.diff (860 B)
Attached To
Mode
T10751: session cookies do not follow $wfCookieSecure
Attached
Detach File
Event Timeline
Log In to Comment