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

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
+1 -5
View File
@@ -3,14 +3,10 @@
function CheckLogin($type=0) {
if(!isset($_SESSION['p_id'])) {
if($type == 0) {
header('Location: start.php');
//echo "<script>location.replace('start.php');</script>";
//echo 'start.php';//TODO:debug all and replace
header('Location: ../');
}
else {
header('Location: main.php');
//echo 'main.php';//TODO:debug all and replace
//echo "<script>window.top.main.location.replace('main.php');</script>";
}
exit();
}