$wgAddGroups and $wgRemoveGroups, where the user must belong to a specified
group in order to add or remove those groups from themselves.
Backwards compatibility is maintained.
-* $wgEnablePersistentCookies has been added. Setting to false disables the
- setting of persistent cookies. Defaults to true.
* $wgRestrictDisplayTitle controls if the use of the {{DISPLAYTITLE}} magic
word is restricted to titles equivalent to the actual page title. This
is true per default, but can be set to false to allow any title.
* view for watched pages with new changes */
$wgShowUpdatedMarker = true;
+/**
+ * Default cookie expiration time. Setting to 0 disables makes all cookies session-only.
+ */
$wgCookieExpiration = 30*86400;
/** Clock skew or the one-second resolution of time() can occasionally cause cache
*/
$wgCookieHttpOnly = version_compare("5.2", PHP_VERSION, "<");
-/**
- * Allow MediaWiki to set persistent cookies for login, etc.
- */
-$wgEnablePersistentCookies = true;
-
/**
* If the requesting browser matches a regex in this blacklist, we won't
* send it cookies with HttpOnly mode, even if $wgCookieHttpOnly is on.
/** 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();