Remember Me (Auto Login) (v2023)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
fvercesi
User
Posts: 24

Remember Me (Auto Login) (v2023)

Post by fvercesi »

Hello.

I have created a project with enabling the Remember Me (Auto Login). Here is the situation:

1) User logs in and mark the "Remember Me" option
2) User close de browser (not the tab)
3) User opens the browser and access the site
4) Login fails

The user can only log in again if we manually clear the "Profile field" at the user table OR if we rollback 1 hour in the "LastAccessedDateTime" session. For example:
Like this, can't log in: a:2:{s:9:"SessionID";s:26:"mc4do0ftflr94c8hop9ei146rj";s:20:"LastAccessedDateTime";s:19:"2024/02/26 09:33:20";}
Like this, log in works: a:2:{s:9:"SessionID";s:26:"mc4do0ftflr94c8hop9ei146rj";s:20:"LastAccessedDateTime";s:19:"2024/02/26 08:33:20";}

I have been able to reproduce the situation consistently.

Any tips?


arbei
User
Posts: 9384

Post by arbei »

fvercesi wrote:

2) User close de browser (not the tab)
3) User opens the browser and access the site

Any time difference between above?


fvercesi
User
Posts: 24

Post by fvercesi »

No. I can close and open again instantly and the problem happens. However, if I close wait 1 hour and open again, it will work.


arbei
User
Posts: 9384

Post by arbei »

Is it due to time zone? Do the dates stored in the Profile field match your time zone on the client side?


Post Reply