📅  最后修改于: 2022-03-11 14:58:04.345000             🧑  作者: Mango
$sessionDuration = 60*60*24*7;
ini_set('session.gc_maxlifetime', $sessionDuration);
$cfg['LoginCookieValidity'] = $sessionDuration;