[phplib] frames & auth From: darcy w. christ (darcy <email protected>)
Date: 05/24/00

i've checked through some of the archives of this list and i haven't
found an example to suit what i am trying to do.

i am developing a multi-framed web application that needs to
authenticate every frame. i do not want to authenticate just the
frameset since mildly clever folks could bi-pass the authentication by
directly loading one of the frames. My solution is to place page_open
in every document. This may be overkill, but i don't see a better way
to do it. Anyway, i've set this up and it seems to work fine. Now i've
discovered a neat bug in which if the authentication expires and i try
to click within one of the frames, my login screen loads into that
frame. This is not the desired behaviour. What i would really like to
be able to do is force a complete reload of the frameset (presumably
using javascript). Javascript can easily enough determine whether the
login is occuring within a frame or not. The problem comes if i try to
redirect to another page with the real login. When i do that, i've lost
track of my $this variable. Has anyone encountered this? Does anyone
have any ideas?

 loginform.ihtml: javascript redirect to top if frame else load
login.php3

 login.php3: regular login page. Unable to capture variables from
redirect like $this->url()

-- 
~darcy w. christ
Elegant Communications Inc.
416.362.9772 x222 | 416.362.8324 fax

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>