diff options
author | Chad Horohoe <demon@users.mediawiki.org> | 2008-08-18 19:57:01 +0000 |
---|---|---|
committer | Chad Horohoe <demon@users.mediawiki.org> | 2008-08-18 19:57:01 +0000 |
commit | 88ba444d0dbe61afe3179c0aee3ea52831109e0b (patch) | |
tree | ede9a55704753b45da685cf45296279f1c1bc9d5 /includes/WebResponse.php | |
parent | 7fb9ffba7e18521d903bb9aed24cc59900634ca3 (diff) | |
download | mediawikicore-88ba444d0dbe61afe3179c0aee3ea52831109e0b.tar.gz mediawikicore-88ba444d0dbe61afe3179c0aee3ea52831109e0b.zip |
Remove boneheaded config var $wgEnablePersistentCookies. Setting the default expiration to 0 now makes the cookies session-only (seeing as it was largely ignored)
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/39607
Diffstat (limited to 'includes/WebResponse.php')
-rw-r--r-- | includes/WebResponse.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/includes/WebResponse.php b/includes/WebResponse.php index 5ebc69976438..b667e9ff02f5 100644 --- a/includes/WebResponse.php +++ b/includes/WebResponse.php @@ -12,13 +12,9 @@ class WebResponse { /** Set the browser cookie */ function setcookie( $name, $value, $expire = 0 ) { - global $wgEnablePersistentCookies; - if ( !$wgEnablePersistentCookies ) { - return false; - } global $wgCookiePath, $wgCookiePrefix, $wgCookieDomain; global $wgCookieSecure,$wgCookieExpiration, $wgCookieHttpOnly; - if( $expire == 0 ) { + if ( $expire == 0 ) { $expire = time() + $wgCookieExpiration; } $httpOnlySafe = wfHttpOnlySafe(); |