Re: ssl enabled apache = NO php sessions
| From: | Thomas Deliduka | Date: | Wed, 28 Jun 2000 18:17:56 +0000 |
| Subject: | Re: ssl enabled apache = NO php sessions | ||
| References: | 1 | Groups: | php.dev php.general |
| Request: | Send a blank email to php-dev+get-22661@lists.php.net to get a copy of this message | ||
WOW! I have been battling this all morning!!!
I have a control panel and it's running under the secure server. I go to the
page and the session is created. and the cookie is set.
I then login and I want to use the same session and I register the variables
in it. Well, that session does get the login information without a problem
but by the end of the script a new session blank session has been created
and the written variables not accessible.
Oh, and the global $SID variable always returns blank so I manually pass
through PHPSESSID and it still will just forget that I passed and create a
new session.
Even if I manually do session_id($PHPSESSID) it won't take it.
Now I know the heart of the problem, I don't know how to fix it. I am
posting this also to the developers list to see if they have any answers.
Also, I suggest we look at http://bugs.php.net to see if this is
already
reported.
I found it interesting that on 6/28/00 1:56 PM Brett M. Delia said:
> We currently have two web servers. One is running perfectly. I'm trying to
> build a second machine, and this following problem seems to be the only
> problem.
>
> Both machines are running Apache 1.3.12, modssl 2.6.4, openssl .0.9.5a,
> JServ 1.1, and PHP/4.0RC2 on Intel P3/600. PHP has Oracle and MySQL support
> enabled.
>
> For some reason, whenever we start apache in ssl mode (listening on both
> nonsecure and secure ports) we lose the ability to store php sessions. If
> we start it in non-secure mode only, php sessions work fine.
>
> To be more exact, the php session IS being written into /tmp, with a valid
> file name, but the length is zero.
>
> Is there some setting I forgot to set somewhere when creating my second
> server that would cause this behavior? Is there something I missed? I've
> read through the FAQs and haven't found anything regarding this problem?
> The php.ini files are identicle, and the output of phpinfo() is identicle
> on both servers.
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/