Re: [Phplib-users] Auth working with a twist
Brought to you by:
nhruby,
richardarcher
|
From: Mike G. <Mik...@sa...> - 2002-10-13 01:05:52
|
Rob Hutton wrote:
> So, first of all, has anyone seen a browser refresh a frame immediately
> when it is loaded before.
Yes.
I had this happen to me for the first time yesterday when I put a statement on a
page which had the following form:
session_start();
$reset = false;
if ($reset) {
unset($_SESSION);
}
If I made $reset = true I observed the same phenomenon that you report: the
browser immediately refreshed the page. This was/is not a problem for what I am
doing, since I only set $reset = true at certain points during the development
when I have made changes to a class which cause the objects to be no longer
valid if they are being saved by the session. And I suspect that what I am doing
is a bad way to do even what I want to do. But for the sake of just getting on
with the job and since I don't expect to keep the above statements in the
production code, I haven't pursued the issue further.
I'm reporting this here because there is a possibility that it could give a clue
to what is happening in your case.
I am not using PHPLib at this point in this project. So the browser immediately
refreshing the page is not specially a PHPLib problem. It looks, however, as if
it can be caused by starting a session and then un-setting the $_SESSION
variable. Thus it might be that PHPLib has something embedded in it which has
the same effect as that bit of kludgy code of mine above.
For what it is worth...
Cheers!
Mike Green
|