关闭页面时自动清除session
thinkphp吧
全部回复
仅看楼主
level 10
黄澄清水 楼主
有高手吗?
2014年04月25日 06点04分 1
level 7
js就可以了
2014年04月26日 06点04分 2
level 12
可以的
2014年04月27日 12点04分 3
level 12
关注
2014年05月01日 03点05分 4
level 6
没必要
2014年05月20日 09点05分 7
level 1
把session unset()的掉 然后把session关闭就可以了
2014年06月23日 03点06分 8
level 2
function bindunbeforunload(){
window.onbeforeunload=perforresult;
//window.onbeforeunload 表示.用户关闭浏览器或者是当前网页前执行的操作.或者刷新当前页面时
}
function perforresult(){
当页面关闭时操作的内容

return 信息;
AJAX 写入数据信息;
设置cookies值等等.
}
2014年06月23日 09点06分 9
欢迎加入 ThinkPHP项目开发交流 152609347
2014年06月23日 09点06分
1