<?php
$lifeTime = 24*3600;
session_set_cookie_params($lifeTime);
session_start();
$_SESSION['admin'] = true;
?>
PHP修改session的生存期
最新推荐文章于 2021-04-15 00:58:40 发布
<?php
$lifeTime = 24*3600;
session_set_cookie_params($lifeTime);
session_start();
$_SESSION['admin'] = true;
?>