Question on session

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
artfhc
Forum Newbie
Posts: 23
Joined: Sun May 23, 2004 11:38 pm
Contact:

Question on session

Post 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.
User avatar
mendingo
Forum Commoner
Posts: 28
Joined: Sun May 23, 2004 1:27 pm

Post by mendingo »

Are you using Windows? If so, then you need to change session.save_path to a real directory, eg c:\php\temp
artfhc
Forum Newbie
Posts: 23
Joined: Sun May 23, 2004 11:38 pm
Contact:

Post by artfhc »

Thx. 8)
Post Reply