cakephpcakephp-2.0cakephp-2.1cakephp-2.2

Notice (8): session_start() at CakePHP 2.2


Randomly, from time to time, when i load a page it shows this error:

Notice (8): session_start(): ps_files_cleanup_dir: opendir(C:\Windows\TEMP) failed: No such file or directory (2) [CORE\Cake\Model\Datasource\CakeSession.php, line 615]

Im using CakePHP 2.2. What is going on here??


Solution

  • Seems like the directory for saving session files is set to a non-existent directory in your php.ini. So either create the directory it complains about or specify another directory for session.save_path php config.