세션 테이블을 뒤집어 엎는 중.

session 디렉토리 제거. 서버의 자체 session으로 관리함. 필요하다면 자동로그인을 추가함.

login_process.php를 이용하지 않고 자체적으로 세션을 관리하도록 처리 중.
This commit is contained in:
2018-02-03 04:39:22 +09:00
parent e536e2d4ca
commit ecac4b6edb
15 changed files with 96 additions and 78 deletions
+2 -2
View File
@@ -13,13 +13,13 @@ $id = $_POST['id'];
$pw = $_POST['pw'];
$conmsg = $_POST['conmsg'];
$_SESSION['conmsg'] = $conmsg;//XXX: conmsg를 처리할 더 적절한 장소는?
$id = _String::NoSpecialCharacter($id);
$pw = substr($pw, 0, 32);
$response['result'] = 'FAIL';
_Session::TrashSession();
$SESSION = new _Session();
$rs = $DB->Select('NO, GRADE, QUIT', 'MEMBER', "ID='{$id}' AND PW='{$pw}'");