Example #1
0
 /**
  * Обработчик действия "выход"
  */
 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();
 }
Example #2
0
 public function createtables()
 {
     require 'app/models/authmodel.php';
     $auth = new Auth_model();
     $auth->createtables();
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
 }