cakephp之为什么我在 cakephp 中看到这个 session 错误
langtianya
阅读:66
2024-11-01 17:39:52
评论:0
我在 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.
请您参考如下方法:
您必须执行以下步骤
- 设置默认写入/tmp 文件夹的权限
- 更改 php.ini 以指向您有权访问的目录而不是/tmp
- 设置 Configure::write('Session.save', 'cake') 并将它们放入蛋糕中 app/tmp,您可以在其中绝对管理权限。
为此,您必须更改 config/core.php 文件中的 session 设置。有几种选择。默认是使用 php.ini 设置来保存 session 。 更多详情 CakePHP Core Configuration Variables
声明
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。