gpt4 book ai didi

cakephp - 为什么我在 cakephp 中看到这个 session 错误

转载 作者:行者123 更新时间:2023-12-01 11:52:02 24 4
gpt4 key购买 nike

我在 godaddy 上安装了 cakephp 应用程序但出了点问题我看到这个错误请任何人帮助我..脚本正常工作但我无法使用用户 Controller 登录

   Warning (2): session_start() [function.session-start]: open(/var/chroot/home/content/37/7269737/tmp/sess_5fngsu7g8llj60a9075mkkgh07, O_RDWR) failed: No such file or directory (2) [ROOT/7269737/html/cake/libs/cake_session.php, line 587]

Warning (2): session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/37/7269737/html/cake/libs/debugger.php:683) [ROOT/7269737/html/cake/libs/cake_session.php, line 587]

Warning (2): session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/37/7269737/html/cake/libs/debugger.php:683) [ROOT/7269737/html/cake/libs/cake_session.php, line 587]

Warning (2): Cannot modify header information - headers already sent by (output started at /home/content/37/7269737/html/cake/libs/debugger.php:683) [ROOT/7269737/html/cake/libs/cake_session.php, line 588]


Warning (2): Unknown: open(/var/chroot/home/content/37/7269737/tmp/sess_5fngsu7g8llj60a9075mkkgh07, O_RDWR) failed: No such file or directory (2) [Unknown, line ??]

Warning (2): Unknown: Failed to write session data (files). Please verify that the current setting of session.

最佳答案

您必须执行以下步骤

  1. 设置默认写入/tmp 文件夹的权限
  2. 更改 php.ini 以指向您有权访问的目录而不是/tmp
  3. 设置 Configure::write('Session.save', 'cake') 并将它们放入蛋糕中app/tmp,您可以在其中绝对管理权限。

为此,您必须更改 config/core.php 文件中的 session 设置。有几种选择。默认是使用 php.ini 设置来保存 session 。更多详情 CakePHP Core Configuration Variables

关于cakephp - 为什么我在 cakephp 中看到这个 session 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10656327/

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