세션 경로 하드코딩 제거

This commit is contained in:
Lectom C Han
2026-02-05 12:53:59 +09:00
parent 7034a3643a
commit 422991aaf5
17 changed files with 42 additions and 34 deletions

View File

@@ -7,10 +7,8 @@ error_reporting(E_ALL);
/* ===============================
1. 세션 & 로그인 체크
=============================== */
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
require_once __DIR__ . '/env.php';
kngil_start_session();
if (empty($_SESSION['login'])) {
echo "<script>
alert('로그인 후 이용 가능합니다.');