Manual:$wgCookiePrefix

From mediawiki.org
This page is a translated version of the page Manual:$wgCookiePrefix and the translation is 70% complete.
Cookie: $wgCookiePrefix
カスタム Cookie 接頭辞。
導入されたバージョン:1.13.0 (r37893)
除去されたバージョン:使用中
許容される値:(文字列) または false
既定値:false

詳細

Cookie および類似するブラウザー データ (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).

既定値は 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;
        }
}

関連項目