MediaWiki 설치 후 로그인시 "세션+하이재킹을+막기+위해+동작이+취소되었습니다"라는 에러가 발생할 경우 session save 경로가 지정되지 않거나, cookie 관련 세팅으로 인하여 문제가 발생할 수 있습니다.
이 경우 시도해볼 수 있는 방법 2가지가 존재합니다.
1. LocalSettings.php 파일의 Cookie 관련 설정의 제거
$wgCookieDomain - Set to set an explicit domain on the login cookies.
$wgCookieExpiration - Number of seconds before HTTP cookies expire.
$wgCookieHttpOnly - Set authentication cookies to httpOnly to prevent stealing by JS, in browsers that support this feature.
$wgCookiePath - Explicitly declared "path" for cookies at the cookie domain.
$wgCookiePrefix - Custom cookie prefix.
$wgCookieSecure - Whether cookies are secured.
$wgDisableCookieCheck - Disables session cookies.
2. 세션을 저장하는 임시 디렉토리에 세션을 저장
/opt/apache/htdocs/mediawiki/tmp 디렉토리를 만들고, 쓰기 퍼미션을 설정한 다음 LocalSettings.php파일에 다음의 적습니다.
놀새~의 경우에는 1, 2번을 모두 적용하고 있습니다.
이 경우 시도해볼 수 있는 방법 2가지가 존재합니다.
1. LocalSettings.php 파일의 Cookie 관련 설정의 제거
$wgCookieDomain - Set to set an explicit domain on the login cookies.
$wgCookieExpiration - Number of seconds before HTTP cookies expire.
$wgCookieHttpOnly - Set authentication cookies to httpOnly to prevent stealing by JS, in browsers that support this feature.
$wgCookiePath - Explicitly declared "path" for cookies at the cookie domain.
$wgCookiePrefix - Custom cookie prefix.
$wgCookieSecure - Whether cookies are secured.
$wgDisableCookieCheck - Disables session cookies.
2. 세션을 저장하는 임시 디렉토리에 세션을 저장
/opt/apache/htdocs/mediawiki/tmp 디렉토리를 만들고, 쓰기 퍼미션을 설정한 다음 LocalSettings.php파일에 다음의 적습니다.
session_save_path("tmp");
놀새~의 경우에는 1, 2번을 모두 적용하고 있습니다.





