private function _refreshSession() { $ci =& get_instance(); $ci->session->set_userdata(GAME_SESSION_KEY, ObjectHelper::toArray($this, false)); $db_session = new Gamesession_delegate($this->id); ObjectHelper::shallowCopy($this, $db_session); $db_session->store(); $this->id = $db_session->id; }
private function _refreshSession() { $ci =& get_instance(); $ci->session->set_userdata(MEMBER_SESSION_KEY, ObjectHelper::toArray($this, false)); }