RE: [PHP] Apache 2.0 and Sessions
| From: | Stephen Craton | Date: | Wed, 12 Jan 2005 01:45:31 +0000 |
| Subject: | RE: [PHP] Apache 2.0 and Sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206133@lists.php.net to get a copy of this message | ||
Not a production server, just a development server. It doesn't bail either,
it still displays the page correctly, but no sessions work, obviously.
Thanks,
Stephen Craton
-----Original Message-----
From: Bret Hughes [mailto:bhughes@elevating.com]
Sent: Tuesday, January 11, 2005 7:24 PM
To: Stephen Craton
Subject: Re: [PHP] Apache 2.0 and Sessions
On Tue, 2005-01-11 at 16:02, Stephen Craton wrote:
> I just updated to Apache 2.0 and have gotten PHP all with it. However, I
> just loaded up a script that worked fine on my old Apache 1.3 install but
is
> now causing my errors. Here's the error:
>
>
>
> Warning: session_start():
> open(C:\WINDOWS\TEMP\\sess_8c53cb2382f75076c51ed4b3edece36b, O_RDWR)
failed:
> No such file or directory (2) in D:\htdocs\payments\index.php on line 8
<WAG>
sounds like the apache/php user does not have rights to write to
C:\WINDOWS\TEMP. is that possible?
</WAG>
>
> Warning: session_start(): Cannot send session cache limiter - headers
> already sent (output started at D:\htdocs\payments\index.php:8) in
> D:\htdocs\payments\index.php on line 8
>
this is probably because your script does not bail if there is a problem
with establishing a session. Since php sent the error message the rest
could not happen.
It looks like your php is set to send error msgs. not a good idea on a
production server as was discussed in a thread the last day or so.
Bret
>
>
> I don't see why it's happening, especially since I went into php.ini (I'm
on
> Windows XP) and changed session.save_patch to this:
>
>
>
> session.save_path = "C:/PHP/sessiondata"
>
>
>
> Can anyone give me some input here? I think I see the problem, the whole
> double back slash in the file location, but I don't see how to fix that.
>
>
>
> Thanks,
>
> Stephen Craton
>