세션 테이블을 뒤집어 엎는 중.
session 디렉토리 제거. 서버의 자체 session으로 관리함. 필요하다면 자동로그인을 추가함. login_process.php를 이용하지 않고 자체적으로 세션을 관리하도록 처리 중.
This commit is contained in:
@@ -51,6 +51,15 @@ $conlimit = $db->queryFirstField('select conlimit from game where no=1');
|
||||
$me = $db->queryFirstRow('select `no`,`name`,`nation`,`level`,`msgindex`,`userlevel`,`con`,`picture`,`imgsvr` from `general` where `user_id` = %s_p_id',
|
||||
array('p_id'=>$_SESSION['p_id']));
|
||||
|
||||
if(!$me){
|
||||
resetSessionGeneralValues();
|
||||
returnJson([
|
||||
'result' => false,
|
||||
'reason' => '로그인되지 않았습니다.',
|
||||
'redirect' => NULL
|
||||
]);
|
||||
}
|
||||
|
||||
$con = checkLimit($me['userlevel'], $me['con'], $conlimit);
|
||||
if($con >= 2) {
|
||||
returnJson([
|
||||
|
||||
Reference in New Issue
Block a user