hi all i have a problem with session_start() when i try to login to the script it returns back to login form again and error_log files created with this lines [26-Apr-2010 12:47:39] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_48a8c70591ae023c87b34fb2dc1dce17, O_RDWR) failed: Permission denied (13) in /home/bsbadra/public_html/student/class1/login.php on line 1 [26-Apr-2010 12:47:39] PHP Warning: Unknown: open(/tmp/sess_48a8c70591ae023c87b34fb2dc1dce17, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [26-Apr-2010 12:47:39] PHP 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 [26-Apr-2010 12:47:43] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_48a8c70591ae023c87b34fb2dc1dce17, O_RDWR) failed: Permission denied (13) in /home/bsbadra/public_html/student/class1/year1view.php on line 1 [26-Apr-2010 12:47:43] PHP Warning: Unknown: open(/tmp/sess_48a8c70591ae023c87b34fb2dc1dce17, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [26-Apr-2010 12:47:43] PHP 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 [26-Apr-2010 12:47:47] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_48a8c70591ae023c87b34fb2dc1dce17, O_RDWR) failed: Permission denied (13) in /home/bsbadra/public_html/student/class1/login.php on line 1 [26-Apr-2010 12:47:47] PHP Warning: Unknown: open(/tmp/sess_48a8c70591ae023c87b34fb2dc1dce17, O_RDWR) failed: Permission denied (13) in Unknown on line 0 [26-Apr-2010 12:47:47] PHP 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 PHP: i am in shared hosting but i see php.ini details and it have this value Session Save Path: /tmp the script was working fine and suddenly this happened i checked /public_html/tmp and its found with permission 777 anyhelp please
To me, this looks like 100% your webhost's fault. Contact their support! Tell them everything is set right. even if it's NOT their fault, it's close enough to their fault they should help you for free.
another strange thing i have another account in the same hosting same server but different domain i copy the script in the other account and it works without any error!!!!!!!
Yeah, then that just reinforces the idea that it's not your fault. Get them to fix it or raise hell one!