Manual:$wgCookiePrefix/pt-br

Category:MediaWiki configuration settings/pt-br#CookiePrefixCategory:MediaWiki configuration settings introduced in version 1.13.0/pt-br#CookiePrefixCategory:MediaWiki configuration settings still in use/pt-br#CookiePrefixCategory:Cookies variables/pt-br#CookiePrefix
Cookies: $wgCookiePrefix
Custom cookie prefix.
Introduzida na versão:1.13.0 (r37893)
Removida na versão:Ainda em uso
Valores permitidos:(string) or false
Valor padrão:false

Details

Prefix for cookies and similar browser data (including localStorage). Set it to use a custom one. Defini-lo como false define o padrão de uso do nome do banco de dados. Code should ensure browser saved data is prefixed with this value (this is currently done automatically only when WebResponse->setcookie is used without a custom prefix).

The default value is determined in Setup.php:

if ( $wgCookiePrefix === false ) {
        if ( $wgSharedDB && $wgSharedPrefix && in_array( 'user', $wgSharedTables ) ) {
                $wgCookiePrefix = $wgSharedDB . '_' . $wgSharedPrefix;
        } elseif ( $wgSharedDB && in_array( 'user', $wgSharedTables ) ) {
                $wgCookiePrefix = $wgSharedDB;
        } elseif ( $wgDBprefix ) {
                $wgCookiePrefix = $wgDBname . '_' . $wgDBprefix;
        } else {
                $wgCookiePrefix = $wgDBname;
        }
}

See also

Category:Cookies variables/pt-br Category:MediaWiki configuration settings/pt-br Category:MediaWiki configuration settings introduced in version 1.13.0/pt-br Category:MediaWiki configuration settings still in use/pt-br