aboutsummaryrefslogtreecommitdiffstats
path: root/includes/WebResponse.php
diff options
context:
space:
mode:
authorChad Horohoe <demon@users.mediawiki.org>2008-08-18 19:57:01 +0000
committerChad Horohoe <demon@users.mediawiki.org>2008-08-18 19:57:01 +0000
commit88ba444d0dbe61afe3179c0aee3ea52831109e0b (patch)
treeede9a55704753b45da685cf45296279f1c1bc9d5 /includes/WebResponse.php
parent7fb9ffba7e18521d903bb9aed24cc59900634ca3 (diff)
downloadmediawikicore-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.php6
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();