I am using the helper Sentry::authenticateAndRemember($credentials);
to authenticate the user, but after a while (a few days) I get disconnected. The session driver used is the database one.
I investigated the problem and tried to understand how Sentry remembers the authentication of a user.
First, in the sessions table, does anyone know what the payload represents ? I have checked the created cookies and I don't understand why but the expiration date is set for a month later (whereas in the source code it looks like it is set 5 years later).
Also, I have tried to log the user in without remembering him (Sentry::authenticate($credentials, false);
) and I get the exact same cookie created, so I don't get disconnected when exiting my browser.
Does anyone have any clue explaining anything that I said ?