Without going into the details of my code: is it possible to have two
different users logged in at the same time?
I had one page where I found the username correctly set, and another
where it wasn't. (Just by checking <?= $_SERVER['PHP_AUTH_USER'] >? at
the top of each page.)
Wondering why it would be set for one page and not another (and as a
sanity check) I wrote another page which sends the basic auth headers
and so logged in again.
Now the first page shows my original username. All the other pages
(which used to show username at all) now show the second username. I can
freely switch between them too: it's very consistent. One page, user1.
All the rest: user2.
I'm really confused. I didn't think it was possible to be logged in as
two different users in the same browser against the same host at the
same time.
server: w2k, php 4.3.10, apache 1.3.24
client: both IE and FF.
--cd