[Catalyst] Re: Session timeout and re-Authentication from a Frame

A. Pagaltzis pagaltzis at gmx.de
Tue May 15 16:43:19 GMT 2007


* Steve H <s_t_e_v_e_h at hotmail.com> [2007-05-15 05:00]:
> Is there any easy trick to be able to get that Login screen to
> use '_top' as the target?

Not directly, but you can use Javascript as Matt wrote.

For completeness’ sake (although not applicable in your
particular case), note that such code can easily run afoul of
cross-domain restrictions for Javascript. So for reference, the
precise way to write such de-framing code so it always works is
like this:

    if ( window != top )
        top.location = window.location.href;

(Or you can write `top` as `window.top` if you prefer.)

(I am posting this because I just recently had to research it.)

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list