How to set the expiration time of tp5.1 's session

the document only says to modify the expiration time in the session.php file so that it is global. If you want to set the expiration time of a session individually, it does not take effect with the Session::init configuration. Session has always existed.
uses config ("session.expire",60); setting expiration time alone does not lose expiration

Dec.02,2021
Menu