Re: Re: IE 5.5,authentication,PHP sessions: IE never stops
| From: | Chris Poirier | Date: | Mon, 05 Mar 2001 19:39:22 +0000 |
| Subject: | Re: Re: IE 5.5,authentication,PHP sessions: IE never stops | ||
| References: | 1 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-general+get-42652@lists.php.net to get a copy of this message | ||
Hi Ken,
> At 10:56 AM 3/5/01 -0600, John Henckel wrote:
> >1. open mytest.php and when the password prompt appears, I enter a userid/password.
> >2. I see the "Hello" page with my userid and password.
> >3. close IE and reopen mytest.php, again the prompt appears -- this is good.
> >4. close IE and Restart Windows.
> >5. open mytest.php and when the password prompt appears, I hit CANCEL.
> >6. the message "Sorry you are not authorized" appears
> >7. in the address box I type www.google.com and wait for it to appear
> >8. I press the BACK button and guess what I see? I see the "Hello" page with my
> >userid and password from step 2 !!!!!!!!!!!!!! apparently the page is retrieved from the browser
> >cache.
>
> This is exactly one of the things I was complaining about: It is NOT a browser cache issue - it
> still remembers your username and password, and will continue to send it with page requests. This
> happens when you hit "cancel" on the new password prompt. You'd think it would
> forget the username and password at this point, but it doesn't. You have to clear the password
> field and hit OK. Crazy, huh?
>
> - Ken
There is a suggestion in the PHP online documentation that has worked for
me (except in Opera 5, which seems to ignore the Realm). Add a timestamp
to the Realm that changes with each new session. IE 5.0 will prompt for a
different password, because it sees it as a different login.
Later, Chris.