|
|
@ -105,7 +105,7 @@ class UserHelper {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (empty($_SESSION["uid"])) {
|
|
|
|
if (empty($_SESSION["uid"])) {
|
|
|
|
Pref_Users::logout_user();
|
|
|
|
UserHelper::logout();
|
|
|
|
|
|
|
|
|
|
|
|
Handler_Public::render_login_form();
|
|
|
|
Handler_Public::render_login_form();
|
|
|
|
exit;
|
|
|
|
exit;
|
|
|
@ -157,4 +157,16 @@ class UserHelper {
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static function logout() {
|
|
|
|
|
|
|
|
if (session_status() === PHP_SESSION_ACTIVE)
|
|
|
|
|
|
|
|
session_destroy();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($_COOKIE[session_name()])) {
|
|
|
|
|
|
|
|
setcookie(session_name(), '', time()-42000, '/');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
session_commit();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|