Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session handling

Status
Not open for further replies.

lykeat

Programmer
Sep 1, 2003
22
MY
Hi there. When I try to use the session to keep the user id, I faced some problems. In my script I use session_start(), but it shows me following error message.

Warning: session_start() [function.session-start]: open(/tmp\sess_3e45e293685a508e85782a9390b384b6, O_RDWR) failed: No such file or directory (2) in c:\MySite\add_search_con.php on line 4

My OS is Windows XP. I install the apache by using the "PHPTriad". I had download the PHP5 binary file from internet because PHPTriad is not providing the PHP5 and replace the old php folder in PHPTriad. I also replaced the "php.ini" into the "c:/windows" and all the dll files from the "dlls" folder together with "php4ts.dll" are replaced in the folder "c:/windows/system32".

Please show me the steps to fix this out.
 
The path to the folder where the sessions data is not set correctly. Its still set at a Unix default.

Open the php.ini file and look for the sessions area. There is a line

session.save_path

alter the save path to "C:\temp"; or to whatever folder you want to use....

hth


Bastien

Cat, the other other white meat
 
Now this is weird, I'm having sort of the same problem.

Running Apache 2 server with PHP 4.3.0 on a WinXP Pro OS
I have the same session_start error as it did for lykeat.

I tried several times to change the php.ini file under c:\windows but it looks like it doesn't affect the system at all! I tried testing it by changing other things on php.ini (like register_globals) but it looks as if the system isn't reading it. WTF?

Could it be that there is some other 'hidden' ini file the system is reading instead of my precious c:\windows\php.ini???

thanks!
 

found it.

my PHPIniDir in my httpd.conf wasn't set correctly, and so Apache couldn't find the php.ini.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top