Page 1 of 1

[SOLVED] Login Script -Help !!

Posted: Wed Dec 31, 2003 8:32 am
by adinic
Hi! I am having trouble in making this script work. What it should do is login users and send them to the home page if the username and password is good. Otherwise it displays a page with an error message.
When i load the page i get these errors:

Warning: session_start(): open(/tmp\sess_3ec6867e0eba7384adc0ce7b64884604, O_RDWR) failed: No such file or directory (2) in C:\Apache\Apache2\htdocs\index.php on line 4

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Apache\Apache2\htdocs\index.php:4) in C:\Apache\Apache2\htdocs\index.php on line 4

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Apache\Apache2\htdocs\index.php:4) in C:\Apache\Apache2\htdocs\index.php on line 4

Can anyone tell me what the problem is, and how I can fix it? Thanks! Happy New Year !!

Posted: Wed Dec 31, 2003 9:01 am
by JAM
You seem to be missing a /tmp/ directory.

In php.ini, search for 'session.save_path' (without quotes) and verify if it exists. Windows users should use full path: 'C:/windows/temp'

[Edit:
According to the original poster, this was the problem... Marking thread as [SOLVED] --JAM]