[SOLVED] Login Script -Help !!

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
adinic
Forum Newbie
Posts: 1
Joined: Wed Dec 31, 2003 8:32 am

[SOLVED] Login Script -Help !!

Post 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 !!
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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]
Post Reply