gpt4 book ai didi

php - 升级我的托管计划后出现 session 启动问题

转载 作者:行者123 更新时间:2023-11-29 08:21:20 24 4
gpt4 key购买 nike

我刚刚升级了我的托管计划,现在用户 session 不再工作。用户登录时无法访问成员(member)区域,以下是打开我的网站时显示的错误:

Warning: session_start() [function.session-start]: open(/home/content/15/9277415/tmp/sess_enersdnbm88g5detjemgnptu47, O_RDWR) failed: No such file or directory (2) in /home/content/15/9277415/html/include/config.php on line 14

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/15/9277415/html/include/config.php:14) in /home/content/15/9277415/html/include/config.php on line 14

Warning: Unknown: open(/home/content/15/9277415/tmp/sess_enersdnbm88g5detjemgnptu47, O_RDWR) failed: No such file or directory (2) in Unknown on line

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0

在 config.php 第 14 行中,我们有 session 变量:

       if(!session_id()) session_start();
if (!isset($_SESSION)) $_SESSION=array();

有谁知道为什么会发生这种情况或如何解决它?这些错误在托管计划升级之前不会显示。

最佳答案

确保目录 /home/content/15/9277415/tmp 存在并且可由网络服务器写入。

关于php - 升级我的托管计划后出现 session 启动问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19320753/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com