session_start warning !!!

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
dmakris
Forum Newbie
Posts: 11
Joined: Tue Jun 03, 2003 7:58 am
Location: Greece

session_start warning !!!

Post by dmakris »

Hello everybody.
I get some "session_start warning" messages but everuthing seems to working fine !!!
Any ideas about these annoying warnings?
Thanks in advance...
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

What's the exact error/warning ?
dmakris
Forum Newbie
Posts: 11
Joined: Tue Jun 03, 2003 7:58 am
Location: Greece

Post by dmakris »

Warning: session_start(): open(/tmp\sess_3e9b7822ff34f10f67512ef55430cb66, O_RDWR) failed: No such file or directory (2) in "folder name"

Warning: session_start(): Cannot send session cookie

Warning: session_start(): Cannot send session cache limiter - headers already sent

Warning: Cannot modify header information - headers already sent

thanks in advance...
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Post by TheBentinel.com »

dmakris wrote:Warning: session_start(): open(/tmp\sess_3e9b7822ff34f10f67512ef55430cb66, O_RDWR) failed: No such file or directory (2) in "folder name"

Warning: session_start(): Cannot send session cookie

Warning: session_start(): Cannot send session cache limiter - headers already sent

Warning: Cannot modify header information - headers already sent

thanks in advance...
Once the first error throws the text to the browser, the headers (where the cookie will go) have already been sent. If you correct the first error, you'll probably fix them all.

What code are you running on start of a session? Can you paste it here?
basdog22
Forum Contributor
Posts: 158
Joined: Sun Nov 30, 2003 3:03 pm
Location: Greece

Post by basdog22 »

loipon patriwti:

I suppose you use windows :wink:

Open your php.ini and change the line "session.save_path =\"

to:
session.save_path =c:\windows\temp\
if you use other than win98 change the line above to point to your temp folder
Post Reply