/** * Обработчик действия "выход" */ public function action_logout() { $this->_model->resetsession(session_id()); echo "<script>localStorage.removeItem('remember');</script>"; // Unset all of the session variables. session_unset(); // Finally, destroy the session. session_destroy(); $this->success = false; $this->gohome(); }
public function createtables() { require 'app/models/authmodel.php'; $auth = new Auth_model(); $auth->createtables(); }
public function __construct() { parent::__construct(); }