Page 1 of 1

Session Problem

Posted: Sat Jul 19, 2003 6:47 am
by CrazyJimmy
I am trying to use sessions and keep getting this error everytime i try to start one:-

Warning: session_start(): open(/tmp\sess_26195bed3979db88bf9bbf8c545e2546, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\dev\admin.php on line 1

I'm lost as to whats causing it.

Thanks

Posted: Sat Jul 19, 2003 6:54 am
by Fredix
posting here the source might help to solve your problem

Posted: Sat Jul 19, 2003 6:58 am
by CrazyJimmy
It is just when i start a session even with no other code. I'm sure it has something to do with the /tmp directory, but I have created it everywhere I can think and still get error.

I'm using Apache 2/PHP 4.3.2/Windows XP

Posted: Sat Jul 19, 2003 6:36 pm
by mrchris
I use apache on windows too and I changed my session.save_path to point to a valid windows path name like C:\php\mytmp vs. /tmp and a lot of my session problems went away.

Posted: Mon Jul 21, 2003 3:41 am
by twigletmac
As mrchris indicated you need to edit your php.ini - the /tmp bit is for *nix systems and has to be changed for Windows systems.

Mac