- Session클래스 내에서 global setter, getter 재정의 - Session클래스에서 static 함수로 getUserID, getUserGrade 재정의 - 내부 서버에서 getUserID, getUserGrade를 쓰던 것 Session 클래스로 통일 - SESSION.php가 requireLogin 기능을 수행하던것을 Session의 static 함수로 통합
18 lines
303 B
PHP
18 lines
303 B
PHP
<?php
|
|
namespace sammo;
|
|
|
|
require_once('_common.php');
|
|
require_once(ROOT.'/f_config/DB.php');
|
|
$session = Session::requireLogin();
|
|
|
|
// 외부 파라미터
|
|
|
|
|
|
$session->logout();
|
|
unset($_SESSION['access_token']);
|
|
session_write_close();
|
|
setcookie("hello", "", time()-3600);
|
|
|
|
Json::die([
|
|
'result'=>true
|
|
]); |