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!
i was surfing my site, and all of a sudden, i got an error on the top of the page
Warning: session_start(): open(/tmp/sess_3b7dc347ebdc96e42d4473b8e159df06, O_RDWR) failed: Permission denied (13) in /home/gaogier/public_html/header.inc on line 3
and i also got 2 errors on the bottem of the page
Warning: Unknown(): open(/tmp/sess_3b7dc347ebdc96e42d4473b8e159df06, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
Pretty obvious... you don't have rights to write in /tmp (Well atleast the webserver doesn't have those rights)...
One of the first things to do when using shared hosting is to change the session.save_path... Otherwise other users can also read *your* sessiondata....