[eluser]Unknown[/eluser]
Hello,
I am trying the create a login system. User can authenticate to system but I have a checkbox
which allows system to remember user.
Everything works fine but I could not find a proper way to use "remember me" section.
I am using ci_sessions table to strore sessions as written in user guide and autoloading session library.
My first approach is :
When remember me is clicked I try to change the below variable
$this->session->sess_expiration = 0;
but this doesnt work.
$this->config->config['sess_expiration'] = 0; doesnt work either.
Another approch is to create a cookie for this. I can create a cookie and check if it exists and login to user but I am using ci_sessions table so session will be destroyed when sync with database.
What is the correct way of doing this.
I have searched and try all the best practices but couldnt find a way.
Thank you.