login(); return true; } public function handle($fnc): bool { if ($fnc === 'logout') { Security::get()->logout(); echo '{"reload": true}'; die(); } return true; } }