I am attempting to use sessions in my login script but get the following errors:

Warning: session_start(): open(/tmp\sess_f098750d60955aea218732ccd1c260bd, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\scripts\validate.php on line 12

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\scripts\validate.php:6) in C:\Program Files\Apache Group\Apache2\htdocs\scripts\validate.php on line 12

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\scripts\validate.php:6) in C:\Program Files\Apache Group\Apache2\htdocs\scripts\validate.php on line 12
validated
Warning: Unknown(): open(/tmp\sess_f098750d60955aea218732ccd1c260bd, O_RDWR) failed: No such file or directory (2) 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

Any suggestions would be very welcome.

    Looks like something is misconfigured in php.ini which handles session.save_path - check there and see what the value is for session.save_path

    You can also check your settings by using phpinfo() command

    Phil

      /tmp is a file path for most *nix systems so it doesnt exsist on a windows box.

      Change your session save path in your php.ini file to c:\temp. If you dont have c:\temp then create it!

      Mark.

        Write a Reply...