ChatGTP sorunu çözümlüyor ;

The error is that the cookies are set to expire after one hour (3600 seconds) by using time()+3600*1. This means that the cookies will only be stored on the user's browser for one hour before they expire and the user will have to log in again. To fix this, you can set the expiration time for the cookies to a longer period, such as one day (86400 seconds) by using time()+86400*30 . This will ensure that the cookies remain stored on the user's browser for 30 days, and the user will not be logged out after reopening the browser.