RM
Asked
The remember me functions logs out users after a certain period of time. What do I need to change to extend the time a users is remembered?
- MSAnsweredHello,
You can update `sess_expiration` & `sess_time_to_update` in the `app/config/config.php` for session and check `remember_users`, `user_expire` & `user_extend_on_login` in the `app/config/ion_auth.php` for user authentication settings.
Thank you - RMAnsweredBelow are the settings. If the user is idle for more than a day. the users needs to re login. We need so that users who checked "Remenber me" are remember until they decide to log out..
- app/config/config.php
sess_expiration=7200
sess_time_to_update=300
- app/config/ion_auth.php
remember_users=TRUE
user_expire=0
user_extend_on_login=FALSE - MSAnsweredHello,
Yes, you can set the values as you need.
```
'sess_expiration'
The number of SECONDS you want the session to last.
Setting to 0 (zero) means expire when the browser is closed.
'sess_time_to_update'
How many seconds between regenerating the session ID.
'user_extend_on_login'
Extend the users cookies every time they auto-login
```
Thank you - RMAnsweredWhat will be the configuration to have the remember me, remember the user for two weeks?
- MSAnsweredHello,
You can calculate the seconds or set `60*60*24*14` for `sess_expiration`
Thank you - Login to Reply