Session Files stored in \windows\temp???

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
llfitness
Forum Newbie
Posts: 12
Joined: Mon Feb 20, 2006 3:28 pm

Session Files stored in \windows\temp???

Post by llfitness »

My session files are being stored in \windows\temp instead of the location designated by my php.ini file. This is causing garbage collecting problems. I want to know what might be putting them in the wrong spot.

My php.ini file has this line:

Code: Select all

session.save_path = "d:/progra~1/php5/sessio~1"
but the files in that directory are from 3/26 and 3/27 of this year.

I'm getting this error message:

Code: Select all

session_start() [function.session-start]: ps_files_cleanup_dir: opendir(C:\WINDOWS\TEMP\) failed: Invalid argument (22)
I was able to locate current session files in \windows\temp. There are session files going back to 3/28 -- obviously I must have changed something but I don't know what.

So, what's the deal? By the way, sessions are working great in a production environment.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

How many php.ini files are there on your server? My windows system has a bunch. Make sure that the file your system is using is the right one.

Next, check your write permissions to the folder to make sure the servar can write to it. Also, what application is this for? One you built or a packaged app?
Post Reply