Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 CI 应用程序运行良好。在我的本地主机上,它可以正常工作,在实时站点上,CI 会在每次页面刷新时不断生成会话。我已经更新了数据库上的会话表以适应更长的 user_agents。这可能是什么原因?
在您的表单页面上,如果会话为空或您有会话,则您没有条件,
如果表单刷新,它将循环创建一个新会话。所以这就是问题所在
然后,如果你想删除一个会话,你可以
$this->session->unset_userdata($yoursession);
不要做 cookie 我认为这不安全,但如果你学习安全编程,我认为我会很安全 ^_^