Every time a user visits my site, he has to log in again. By logging into the site using your username and password, the user can log in like this for a certain time; after the user closes the site, after a few hours of coming back to the site, they need to log in again.
How to fix it?