Why I see errors of this session with cakephp

i the cakephp application was installed on godaddy, but something is wrong, I see these errors, please help me ... the script is working correctly, but I can not log in using the user 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.
+3
source share
2 answers

You need to follow these steps.

  • Set write permissions to the / tmp folder by default.
  • Modify php.ini to indicate that you have access instead of / tmp
  • Set Configure :: write ('Session.save', 'cake') and add them to the app / tmp cake, where you can control permissions specifically.

config/core.php. . php.ini . CakePHP

+4

/var/chroot/home/content/37/7269737/tmp/.

, .

, 0644.

, !

+1

All Articles