session_start(), , /tmp cookie , cookie . cookie php 30 .
cookie php.ini ini_set .htacces. session.cookie_lifetime. - cookie ,
Another possible solution is to create a token system for users, for example, you manually send a cookie to a browser that expires in 2 months using a token (a large random key stored in the database table with the user ID field). When the session is unavailable, you check if the cookie exists and you can recreate the login session by manually entering the user using the cookie token.
David source
share