Codeigniter session data or database query?
问题 How can I show customer's or user's information such as Name and Surname on the header? Firstly, I have a login page. Customer and User can login to the dashboard on the same login page. While login process, it uses 2 database tables such as User and Customer. Login process system takes data from 2 database tables when customer and user login to dashboard. Model of LOGIN: private $table = "user, customer"; private $_data = array(); public function validate() { $username = $this->input->post(