메뉴얼:$wgCookiePrefix

This page is a translated version of the page Manual:$wgCookiePrefix and the translation is 40% complete.
Cookies: $wgCookiePrefix
Custom cookie prefix.
이 변수가 소개된 버전:1.13.0 (r37893)
이 변수가 사라진 버전:계속해서 쓰이고 있음
허용값:(문자열) 또는 false
기본값:false

자세한 설명

Prefix for cookies and similar browser data (including localStorage). Set it to use a custom one. Setting it to false sets the default of using the database name. 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;
        }
}

같이 보기