[eluser]Keloo[/eluser]
Hi I've started working with ion_auth, and I have a few questions:
1. I've seen that in the ion_auth library there isn't a login function, but in the example in the login function there is a piece of code that apparently calls the login function from ion_auth and it works
Code:
if ($this->ion_auth->login($this->input->post('identity'), $this->input->post('password'), $remember))
{ //if the login is successful
//redirect them back to the home page
$this->session->set_flashdata('message', $this->ion_auth->messages());
redirect($this->config->item('base_url'), 'refresh');
}
How ? Because in the latest code of the library there isn't a login function only in the model.
2. When the user is logging in I want to redirect him to a personal user page, and displaying something like "welcome $user";
I can do this with $this->session->userdata('username'), but does the library provide a special function or is ok to use sessions ?