This is bad, bad, bad. I tried using another browser as you
suggested (since I was using Netscape 4.7) and the
session_register worked. I still got different results than you
though.
Read throughout for more comments.
"Johnson, Kirk" wrote:
>
> Jennifer, there are at least two of us totally confused. I did a copy and
> paste of your code and got the expected results:
>
> session id is afb1f9e27afc752f7d9e96e096ca2209
> session_register worked.
> testing is a registered variable
Using IE 5, I got the same results here as with NS4.7
session id is e49f9b5ddb39388ab48c45dd4f14b00c
session_register did not work
testing is a registered variable
Go to next page.
*But* It did work. So why did session_register return false?
> with the contents of /tmp/sess_afb1f9e27afc752f7d9e96e096ca2209 being:
>
> testing|s:24:"Let's see if this works.";
This is the contents of my session file too *when* I use IE for
my browser.
> 1. What browser are you using? I, and others, have seen erratic results with
> sessions using Netscape 4.x. If this is your browser, try your code with
> another browser, if possible.
This appears to be the problem. Now what? So I have to forget
about sessions or forget about the multitude of NS 4.x users that
still exist?
> 2. This is a longshot, but who is PHP running as? By default, it is nobody.
> In any case, check that whomever PHP is running as has write permission to
> /tmp.
I had thought of that one. I increased the permissions to be
world writable and it had no effect.
Thank you for helping me find the problem, now I just wish there
was an easy solution. Arggggggg.
Jennifer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]