amwps But after closing the browser, you will log out, how do you stay logged in?
Surely that is not the case? You can test with our login demo. Login, close browser window, open browser window, and you don't have to login:
https://demo.files.gallery/login/
The only reason you might get logged out after closing browser window, is if you are using some private browser window, or have some extension that removes cookies.
Apart from the above, logins are controlled by your server session.gc-maxlifetime, which is normally set to 1440 seconds (24 minutes). However, as long as you are active (load page or image from PHP), the session timer will always reset, so you would remain logged in as long as you are active. This seems logical.
You can increase session.gc-maxlifetime
in your PHP if required.
https://mazer.dev/en/php/posts/how-to-change-php-session-timeout/