The validity period of the Session varies with the browser process. When the browser is turned off, the Session will disappear. How can I set the expiration time like Cookies? The following code can be implemented. 12345? Php $ cookies_life_time24 * 3600; expiration time, in seconds. The settings here are one-day session_start (); setcookie (session_name (),
The validity period of the Session varies with the browser process. When the browser is turned off, the Session will disappear. How can I set the expiration time like Cookies? The following code can be implemented. 12345? Php $ cookies_life_time = 24*3600; // expiration time, in seconds. The setting here is one-day session_start (); setcookie (session_name (),
The validity period of the Session varies with the browser process. When the browser is turned off, the Session will disappear. How can I set the expiration time like Cookies? The following code can be implemented.
Original article address: Set the Session expiration method in PHP. Thank you for sharing it with the original author.