session error?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

session error?

Post by Steveo31 »

I'm getting a weird error... never seen it before:

Code: Select all

Warning: open(/tmp\sess_e878f199f57fa698f0b56a68dc78a3f4, O_RDWR) failed: No such file or directory (2) in c:\phpdev\www\projects\multimedia\10 hour\index.php on line 2

Warning: open(/tmp\sess_e878f199f57fa698f0b56a68dc78a3f4, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
Line 1 is <?php and line 2 is session_start();

It was working fine until this morning. I didn't change anything anywhere.

Apache 1.3, PHP 4.3.6 XP Home
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Edit c:\windows\php.ini and change session.save_path from /tmp to something like c:\temp (or some other temp directory that exists, or where you want sessions stored).
Then restart apache.
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

With quotes, right?
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Doesn't need them, no.
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

Ok, well it works with em.

If you were a woman, I'd marry you. Thanks man. :D ;)
Post Reply