Blogger Information
Blog 4
fans 0
comment 0
visits 2367
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
2018-2-27
随笔肆
Original
625 people have browsed it

下载然之协同在本地Apache服务器跑退出登录正常,在iis6上退出登录不成功。

然之使用的是:session_destroy();

在登录的控制器打印session时显示有已登录的session数据,session_destroy()没起作用。加上session_unset()也是一样。不知道是什么原因。

换成 unset($_SESSION['NAME']);后管用

目前用过的退出登录销毁session方法:

session('NAME',null); //重赋值null

unset($_SESSION['NAME']);

session_destroy();   

session_unset();


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post