php - After registration using tank_auth user should get logged in for codeigniter -


what best authentication out there codeigniter, decided use tank_auth. seems best authentication codeigniter.

so how can i, after registration user using tank_auth should automatically logged in without requiring him/her activate his/her account.

i have 4 step of registration process in application need add user id multiple tables. logice @ first step want directly login user , session id useful other step.

my logice @ first step want directly login user , session id useful other step.

having never used tank_auth, i'm not sure how implement system, shouldn't difficult. here's quick example whipped up, you...

$data = array(     'username' => $username,     'email' => $email,     'password' => $hashed_password );  $query = $this->db->insert('users', $data);  // use each table $user_id = $this->db->insert_id(); 

then can whatever database, linking user id $user_id

the session can set once have id


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -