Jan 27, 2026
0
Level 6
Session in Laravel to Vue
I'm using Laravel 12 w/ Vue3 and Inertiajs.
Currently, I'm using setTimeout to show a message whenever the session is expiring, but I kinda doubting the process, and then I saw this post: https://stackoverflow.com/questions/8173580/setinterval-timing-slowly-drifts-away-from-staying-accurate
Is there any other way to do this that works well with Vue? Maybe pass the remaining time from Laravel then pass to Vue or is using setTimeout the best way?
Please or to participate in this conversation.