Warning!
警告!
предупреждение!
Your File and DataBase is downloaded and backed up on our secured servers. To recover your lost data : Send 0.1 BTC to our BitCoin Address and Contact us by eMail with your server IP Address and a Proof of Payment. Any eMail without your server IP Address and a Proof of
我正在用PHP开发一个web应用程序,其中用户将能够拥有他或她自己的帐户,并将跟踪用户的会话存储在MySQL数据库中。现在,在寻找如何实现这一点的答案后,我发现许多人既喜欢使用session_destroy(),也喜欢取消设置cookie。为什么- session_destroy()本身还不够吗?甚至也说“为了完全杀死会话,比如注销用户,还必须取消设置会话id。”
我的理由是:用户注销后,在离开之前恰好只访问了站点上的一个页面,检查用户是否登录的PHP脚本将调用session_start(),为用户设置一个新的会话cookie。下面是它可能的样子:
// here we include som