Update security.php

This commit is contained in:
Namhyeon Go 2018-02-13 15:57:03 +09:00 committed by GitHub
parent ebe42f1367
commit 0d7c023565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,13 +262,18 @@ if(!function_exists("session_logout")) {
set_session("ss_key", "");
}
// delete session file
@unlink($config['session_dir'] . '/' . protect_dir_path($ss_key));
// 토큰이 지워졌는지 화인
// permanently destory
session_unset();
session_destroy();
// check ereased token
$abuse = check_token_abuse($ss_user_name, get_session("ss_user_name"));
$abuse = ($abuse && check_token_abuse($ss_key, get_session("ss_key")));
// 판단 결과를 반영
// apply result
$flag = $abuse;
return $flag;