会话在PHP中毁于一旦

编程入门 行业动态 更新时间:2024-10-24 20:19:54
本文介绍了会话在PHP中毁于一旦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我遇到会话被无处摧毁的问题:

I am experiencing issue with a session being destroyed out of nowhere:

session_start():无法解码会话对象。会话已被破坏。

由于我已在服务器日志中抛出该问题,因此无法复制该问题。

Kind of impossible to replicate the issue since I got this thrown in my server log.

任何想法都可能是该问题的根源和/或从哪里开始,因为我变得非常罕见(几乎从来没有)。

Any ideas what could be the roots of that problem and/or where to start because I am getting that very rare (almost never).

推荐答案

当我在$ _SESSION中存储了太多内容时,在我使用表中的serialize()保存它们时,这发生了。解决方案:不要存储太多。

This happened to me when I was storing too much in $_SESSION where they were saved using serialize() in a table. Solution: don't store too much.

更多推荐

会话在PHP中毁于一旦

本文发布于:2023-11-25 05:46:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1628558.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:毁于   PHP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!