Example #1
0
 /**
  * Save the user id into the session
  */
 public function remember()
 {
     $_SESSION['user_id'] = $this->id;
     ACL::clear_caches();
     Session::set_userid($this->id);
 }
Example #2
0
 /**
  * Save the user id into the session
  */
 public function remember()
 {
     if (!isset($_SESSION['sudo'])) {
         $_SESSION['user_id'] = $this->id;
     }
     ACL::clear_caches();
     if (!isset($_SESSION['sudo'])) {
         Session::set_userid($this->id);
     }
 }