-----Original Message-----
> From: Jennifer [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] session_register() - Netscape workaround?

> I thought of a workaraound for Netscape and would like some
> feedback on how to do it and whether it is a good idea.
> 
> I manually edited the session file and Netscape was able to read
> the variable on subsequent pages.  It just can't seem to write
> it.
> 
> 1) Is there some reason that this would be a bad idea?

If it works, go for it!

But it is hard to make sense of this, because it is not the browser that is
doing the reading and writing of the session file, that is PHP's job. The
browser simply requests a page, either accepts the session cookie or
doesn't, and accepts what the web server serves it. It does no
reading/writing of the session file.

Which is why this apparent session problem with Netscape 4.x is so confusing
to me. Go back and look at the original test code you posted, "if
(session_register("testing"))", etc. All the interaction with the session
file, as well as the 'if' blocks, are being done on the server. The browser
only displays what is echo'd to it. That's it. PHP is parsing the script and
handles the session_start(). PHP knows when it is done parsing the script,
so it knows when and how to store the session variables to the session file.
The browser has no role in that. PHP reads the session file and restores the
session variables on the next page. The browser has no role in that. So, it
is hard to see how the browser version is the problem here, yet it seems to
be, since several people have reported seeing this problem.

I dunno.

Kirk

-- 
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]

Reply via email to