미디어위키 $wgCookiePrefix

1 개요[ | ]

미디어위키 $wgCookiePrefix
  • 허용값: false 또는 문자열
  • 기본값: false
  • 쿠키 및 그에 준하는 브라우저 데이터(localStorage 포함)의 접두사
  • 커스텀으로 설정할 수 있다.
  • false 또는 빈 문자열로 설정하면 데이터베이스 이름을 사용하여 기본값이 설정된다.
기본값은 다음과 같이 Setup.php에서 결정된다.
if ( !$wgCookiePrefix ) {
        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;
        }
}

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}