Re: [PHP] Basic Auth

[email protected] (Jim Giner)
Newsgroups php.general
Message-ID <[email protected]>
On 8/27/2013 10:14 AM, Stuart Dallas wrote:
> It's not really confusing so long as you understand how PHP works. Each request is brand new - nothing is retained from previous requests. The two variable you're changing are set by PHP when the request comes in from the browser. The fact you changed them in a previous request is irrelevant because 1) that change was not communicated to the browser in any way, and 2) PHP doesn't retain any data between requests [1].
>
> If you've been coding assuming that changes you make to global variables are retained between requests you must have been having some pretty frustrating times!
>
> -Stuart
>

Not really - this is the first time I've had something not work as expected.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.