Page 1 of 1

Question on session

Posted: Sun May 23, 2004 11:38 pm
by artfhc
I am a beginner of PHP, and I'm trying to learn how to use session in it. The problem is whenever I use session_start() method, the output prints out something like this:
Warning: session_start(): open(/tmp\sess_41391e19a7f2cd78b5c54858bd550584, O_RDWR) failed: No such file or directory (2) in c:\program files\apache group\apache\htdocs\sux.php on line 2...
I understand that this problem is caused by directory not founded for saving the session. But I have already checked the phpinfo, and it shows that session.save_path /tmp /tmp .
So what can I do? Thankyou.

Posted: Mon May 24, 2004 2:57 am
by mendingo
Are you using Windows? If so, then you need to change session.save_path to a real directory, eg c:\php\temp

Posted: Mon May 24, 2004 4:34 pm
by artfhc
Thx. 8)