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.
我的 php 会话遇到了一些问题。我在 moodle 应用程序中部署了一个文件管理插件。
新插件主页的行为异常,正在破坏我的应用程序的实际会话,并正在生成新的session_id().
session_id()
此外,当我尝试使用 查看会话内容时print_r($_SESSION),它会在其中显示“PHP_Incomplete_Class_Name”。
print_r($_SESSION)
实际上PHP_Incomplete_Class_Name与会话再生无关。
PHP_Incomplete_Class_Name
当您(或您的 cms/framework/无论您拥有什么)session_start()在每个序列化对象的类定义被解析之前调用时,就会出现此行为。
session_start()
因此,您需要在开始会话之前包含所有课程。