Get session timeleft
Hi, I would to make session counter for the user so I need actual session timeleft can I got this in Laravel 9 with breeze login system?
I'am changing in .env default time or maybe I must write new function for displaying session time?
@Sinnbeck Puzzled by the naive nature of that SO answer. The session will always be at full duration on every server request? You cannot ask the server how much time is left because the session period is reset on every request?
The only thing near a solution is to time it locally in the browser in javascript, but then this is also flawed when the user has more than one tab open.
Agreed?
Please or to participate in this conversation.