How to set the php session expiration time: first open the directory where the PHP configuration file is located and find the configuration file; then search for "maxlifetime"; finally modify the value of "session.gc_maxlifetime".
Recommendation: "PHP Video Tutorial"
Understanding about session expiration time in PHP:
Open the directory where the PHP configuration file is located and find the configuration file
Open the PHP configuration file and search for: maxlifetime
See: session.gc_maxlifetime=1440, which is the default validity time of session
##Modify session.gc_maxlifetime NotesYou need to restart the service after modifying the PHP configuration fileThe above is the detailed content of How to set php session expiration time. For more information, please follow other related articles on the PHP Chinese website!