$second = input('second');
cookie('second', $second, strtotime(date('Y-m-d 00:00:00', strtotime('+1 day'))) - time());//时间(秒)
$second = input('second');
cookie('second', $second, strtotime(date('Y-m-d 00:00:00', strtotime('+1 day'))) - time());//时间(秒)
本文标题:thinkphp5.1 设置cookie过期时间凌晨0点(第二天
本文链接:https://www.haomeiwen.com/subject/avetsrtx.html
网友评论