로그아웃 관련 __set 버그 해결

This commit is contained in:
2018-03-25 17:28:35 +09:00
parent 503ad43a9e
commit b7c03e5554
2 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -79,7 +79,7 @@ class Session {
}
public function __set(string $name, $value){
if(key_exists($key, self::PROTECED_NAMES)){
if(key_exists($key, $this->PROTECED_NAMES)){
trigger_error("{$name}은 외부에서 쓰기 금지된 Session 변수입니다.", E_USER_NOTICE);
return;
}
@@ -110,6 +110,7 @@ class Session {
$this->set('ip', Util::get_client_ip(true));
$this->set('time', time());
$this->set('userGrade', $grade);
$this->set('access_token', null);
return $this;
}