세션 테이블을 뒤집어 엎는 중.
session 디렉토리 제거. 서버의 자체 session으로 관리함. 필요하다면 자동로그인을 추가함. login_process.php를 이용하지 않고 자체적으로 세션을 관리하도록 처리 중.
This commit is contained in:
+1
-5
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user