User gets logged out after page refresh

Hi everyone

I have a separate user in Invoice Ninja for a different company. However, this user gets randomly logged out—whenever they refresh the page, they are kicked out of the session and need to log in again.

I’ve tested this with multiple browsers, all showing the same issue. I even logged into their account on my own device, and the behavior remains the same. To troubleshoot, I deleted and completely recreated the user (including email confirmation), but the issue persists.

I also cleared all caches using:

php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear

Interestingly, when I log in with my own account, the session remains active after a page refresh.
The only difference between my account and theirs is that I have 2FA enabled, and they do not. Could this really be the cause?
Any ideas on how to fix this?
Thanks in advance!

Infos

Version: v5.11.41
Environment: Docker

Hi,

I suggest creating an issue on the React GitHub repo to ask.

Hi Hillel

I created an issue: User gets logged out after page refresh · Issue #2471 · invoiceninja/ui · GitHub

I just updated to the latest build, but unfortunately, the issue still persists. On the bright side, I now have some fancy icons! :wink:

Best regards

1 Like