Esempio n. 1
0
 /**
  * Felhasználó kijelentkezés
  */
 public function logout()
 {
     // set the remember-me-cookie to ten years ago (3600sec * 365 days * 10).
     // that's obviously the best practice to kill a cookie via php
     // @see http://stackoverflow.com/a/686166/1114320
     // setcookie('rememberme', false, time() - (3600 * 3650));
     // setcookie('rememberme', false, time() - (3600 * 3650), '/');
     // delete the session
     Session::destroy();
 }