Link to home
Start Free TrialLog in
Avatar of kbach
kbach

asked on

session_start() not working

i'm trying to create session variables but the call to function 'session_start()' returns this...

Warning: session_start() [function.session-start]: open(/tmp\sess_535dc55849ec3d13f6a8c8b23b4c6d8b, O_RDWR) failed: No such file or directory (2)

i have session functionality enabled, so i'm wondering if anybody knows what's wrong, is this a configuration problem with my php??

I'm using windows 2000 IIS and php 4.3.1

thank you
Avatar of datibbaW
datibbaW

Well, the fast that the temporary path = /tmp instead of something like C:\WINDOWS\temp might have something to do with it. You can edit this in your php.ini.
that is exactly what happened to me.  let me guess your running php on your personal computer.  well you have to go and make a folder named "tmp" in your php folder.  so if you inctalled php to c:/php/ then make a folder in c:/php/

-Matt
Avatar of kbach

ASKER

sorry guys, i tried both your solutions and nothing is working...

I've tried to edit the session.savepath in the php.ini-recommended file but the changes don't seem to take effect.  Where is this ini file supposed to be in order for it to be recognized.  I've placed it in the WINNT folder, the PHP folder and the active directory of my php scripts (inetpub\wwwroot) but nothing is working...

I also created a tmp folder in the PHP directory, in the WINNT directory and in the active directory of my php scripts but I still keep getting the same error.
ok trry and create tmp folder in c drive
open php.ini file and check that entry
session.save_path = C:\tmp is this only it is only that tmp folder should exist and should have permission to write into it. as session files are stored into it
ASKER CERTIFIED SOLUTION
Avatar of harwantgrewal
harwantgrewal
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kbach

ASKER

thanks everyone...it finally worked when i changed the extension of my ini file to .ini DUH!!!!  
us newbies must get on the nerves of the experts, eh...

thanks again...
so what harwantgrewal said didnt sole your problem?  so you just gave the points ho him?  well i really need points.  i'm 100 points below the thing to kepp my KPro member ship, and that would have put me over.  but i guess you just likes Harry better.  what ever, its your points.

Matt :-(