I get this error when testing locally. I am not sure which module is missing or how to go about fixing this. Any help would really be appreciated. PS have checked previous posts too. Thank you, Peter
Warning: session_start() [function.session-start]: open(../tmp\sess_e082fdd637a2a399e21fe78729e6f620, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\doodlepages\login\include\session.php on line 46
if had just looked at previous posts about sessions you would have easy got an answer to your question. Look at previous posts and you will find your answer.
I found the line and changed it. Saved it, then restarted ALL services. I'm sorry to ask again but it still doesn't work, same error.
Peter
session.save_path = C:\WINDOWS\Temp ; ; where N is an integer. Instead of storing all the session files in ; /path, what this will do is use subdirectories N-levels deep, and ; store the session data in those directories. This is useful if you ; or your OS have problems with lots of files in one directory, and is ; a more efficient layout for servers that handle lots of sessions. ; ; NOTE 1: PHP will not create this directory structure automatically. ; You can use the script in the ext/session dir for that purpose. ; NOTE 2: See the section on garbage collection below if you choose to ; use subdirectories for session storage ; ; The file storage module creates files using mode 600 by default. ; You can change that by using ; session.save_path = C:\WINDOWS\Temp
remove the top session.save_path from your file above
; ; where N is an integer. Instead of storing all the session files in ; /path, what this will do is use subdirectories N-levels deep, and ; store the session data in those directories. This is useful if you ; or your OS have problems with lots of files in one directory, and is ; a more efficient layout for servers that handle lots of sessions. ; ; NOTE 1: PHP will not create this directory structure automatically. ; You can use the script in the ext/session dir for that purpose. ; NOTE 2: See the section on garbage collection below if you choose to ; use subdirectories for session storage ; ; The file storage module creates files using mode 600 by default. ; You can change that by using ; session.save_path = C:\WINDOWS\Temp
Also, if your windows directory is differnt then WINDOWS like mine, change it to what yours is. Also, if your windows directiry is on a different drive, make change this setting to that.
Hello, I have done the changes above very carefully, the path to the Temp directory is correct, it still sends out the error below. Could it be a module missing? I'm fishing, really stuck here, sorry to be a pain again.
Peter
Warning: session_start() [function.session-start]: open(../tmp\sess_83aa216c3983ba6bc68bb97a6b35c00c, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\doodlepages\login\include\session.php on line 46
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\wamp\www\doodlepages\login\include\session.php:46) in C:\wamp\www\doodlepages\login\include\session.php on line 46
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\doodlepages\login\include\session.php:46) in C:\wamp\www\doodlepages\login\include\session.php on line 46
The open(../tmp part of the error message tells me this.
There are two possible reasons your settings have not taken effect.
1.> Make sure you restart apache after you edit your php.ini file. 2.> You must not be editing the right php ini file. Create a file called test.php in your www directory with this code:
<?php
phpinfo();
?>
Save the file, and run it. Look for the setting Configuration File (php.ini) Path. It is about 5-6 lines down from the top of the page. This setting tells you the location of the php.ini file being used. Open up that file, and change the session.save_path setting there, save the file, restart apache and it should work now.
The answer is to check the website config files. (or in the database) Somewhere it is setting it's own session path which is screwing up your system. if you have dreamweaver you can easily search through all the files for a reference to 'session_save_path ( '../tmp' )' or just 'session_save_path'
Changing it in php.ini will have no effect. (but you still should change it to 'session.save_path = C:\WINDOWS\Temp' or some other absolute temp directory.)CyberSpatium wrote: