Click to See Complete Forum and Search --> : Configuring the session_savepath


scuba
12-28-2002, 10:19 PM
Hi,

I'm starting to work with sessions. When I try to use a session i keep getting the message:

Warning: open(/tmp\sess_810a7ae4629fc6836690873b114a04c5, O_RDWR) failed: No such file or directory (2)

Warning: open(/tmp\sess_810a7ae4629fc6836690873b114a04c5, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0


I have tried setting the session save path to everything but the write path. Does anyone know what this path is supposed to be ?

Thanks,
Scuba

RGBlackmore
12-29-2002, 12:46 AM
in php.ini

session.save_path = /tmp

check permissions in the directory

scuba
12-29-2002, 02:33 PM
I ended up making another folder directly on my c: called tmp.

This seems to have fixed the problem. Right now I wonder if someone using this site will still encounter errors when using it if they do not have a c:\tmp folder on their system. Or would it just go into their temporary internet files folder?

Any thoughts?

Thanks for the help,
Scuba

RGBlackmore
12-29-2002, 04:18 PM
the sessions and all related to temporary uses in php, resides in the server; in this case your machine. If I see your web and start a session, the information is saved in your tmp directory, not in mine.

Don't worry, it will work fine.

PS: sorry for my poor english

itworks
01-22-2003, 07:13 PM
i have this same problem and i've tried the solution posted in here, but it doesn't work for me.

i'm using windows and i was wondering what changes to make in the configuration so that the sessions work.

any help would be apretiated, thanks in advance.