Page MenuHomePhabricator

sessioncookiesecure.diff

Authored By
bzimport
Nov 21 2014, 9:30 PM
Size
860 B
Referenced Files
None
Subscribers
None

sessioncookiesecure.diff

--- /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

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3068
Default Alt Text
sessioncookiesecure.diff (860 B)

Event Timeline