Re: Problem storing sessions
| From: | (Dave Daniels) | Date: | Thu, 24 Aug 2000 18:44:57 +0000 |
| Subject: | Re: Problem storing sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13490@lists.php.net to get a copy of this message | ||
I know it sounds weird, but I've had this same trouble which I solved by
copying the exact code to a different file with no changes. Go figure.
----- Original Message -----
From: "Aaron Abelard" <aaron@aig4.com>
To: <php-general@lists.php.net>
Sent: Thursday, August 24, 2000 1:20 PM
Subject: [PHP] Problem storing sessions
>
> I'm still no further on solving this problem. I tried a variation on the
> code below, but it too failed. I really believe that the code is fine and
> that the problem has to do with the httpd. What are the known reasons
that
> PHP would not write session data to the session file?
>
> --- Forwarded Message ---
>
> I'm having a problem getting PHP to store session information. The
problem
> appeared after upgrading to 4.0.1pl2. The code works with the old daemon,
> and as far as I can tell there are no differences between the compiles of
> the two daemons.
>
> This is the code I'm using to test sessions:
>
> <?
> session_register("testvar");
> echo "[" . $testvar . "]<br>";
> $testvar = 100;
> ?>
>
> PHP is creating the session file in /tmp, however it never writes any
> values to the file. If I manually place "testvar|s:3:"300";" in the file
> it will display [300] but still does not write the new value for testvar
> to disk.
>
> phpinfo() shows that both register_globals and track_vars are enabled.
>
> FreeBSD 3.4-20000214-STABLE
> Apache 1.3.12
> PHP 4.0.1pl2
>
> './configure' '--with-apache=../apache_1.3.12'
'--with-mysql=/usr/local/mysql'
> '--prefix=/httpd/apache' '--with-config-file-path=/httpd/apache/conf'
'--with-xml'
> '--with-gd=/opt/src/gd1.2/' '--enable-track-vars'
>
> Suggestions are welcome.
>
> --
> aaron / aig4.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>