Home >Backend Development >PHP Problem >How to set login expiration time in php session
##See: session.gc_maxlifetime=1440, which is the default for session The valid time unit is seconds1440 seconds=24 minutes 7200=2 hours3600=1 hourFor more related knowledge, please visitHow to set the expiration time for php session: First open the directory where the PHP configuration file is located. And find the configuration file; then open the PHP configuration file and search for "maxlifetime"; finally modify the default validity time of the session.
PHP中文网!
The above is the detailed content of How to set login expiration time in php session. For more information, please follow other related articles on the PHP Chinese website!