The Remember Me Does Not Work

0

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?

Question Resolved For: Stock Manager Advance with Point of Sale Module 0 Votes 5 Answers 104 Views
Asked by Ray-Xed 1 year ago

0

Answered by Mian Saleem 1 year ago

Hello,

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

0

Answered by Ray-Xed 1 year ago

Below 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

0

Answered by Mian Saleem 1 year ago

Hello,

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

0

Answered by Ray-Xed 1 year ago

What will be the configuration to have the remember me, remember the user for two weeks?

1

Answered by Mian Saleem 1 year ago

Hello,

You can calculate the seconds or set 60*60*24*14 for sess_expiration

Thank you

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.