Re: !!Urgent .. Session Problem
| From: | Nick Wilson | Date: | Sat, 04 Sep 2004 08:39:10 +0000 |
| Subject: | Re: !!Urgent .. Session Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195814@lists.php.net to get a copy of this message | ||
* and then Dre declared....
> Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
> O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache
> Group\Apache2\htdocs\ELBA\logme_in.php on line 3
Check your php.ini for session.save_path=
Im not sure where the temp dir is on a windows box, but point it to
there and that should do it I think.
> Warning: session_start(): Cannot send session cookie - headers already sent
> by (output started at C:\Program Files\Apache
> Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache
> Group\Apache2\htdocs\ELBA\logme_in.php on line 3
Check the file for white space, this always gets me too ;-)
Like this
----------------start of file
<?php
---------------------
See the new line above the php? that would cause that error. Check your
file for somthing similar...
> the session.save_path parameter in my php.ini file is as follows
> **************************************
> session.save_path = "C:/WINDOWS/Temp"
> **************************************
Damn! should have read the whole thing b4 replying! hehe.... you might
have several php.ini's find the right one! on my gentoo box it's in
/etc/apache2/conf/php.ini but there's also one in /etc/php.ini
--
Nick W