📅  最后修改于: 2022-03-11 14:54:22.836000             🧑  作者: Mango
//Expire session after 10 seconds
ini_set('session.gc_maxlifetime', 10);
//Set the probability and divisor to be set to 100% of probability
ini_set('session.gc_probability', 1);
ini_set('session.gc_divisor', 1);
session_start();