Forms Authentication Timeout with Frames

  • Thread starter Jeronimo Bertran
  • Start date
J

Jeronimo Bertran

I have implemented forms authentication on pages that are inside frames.

Everything works fine (logon and logoff) except when the session timeouts
wich displays the logon page INSIDE the frame. I have also tried forcing
the LoginPage to be the top window but the redirection makes the original
page a top window as well.

Thanks

Jeronimo
 
M

[MSFT]

Hello Heronimo,

How did you force the LoginPage to be the top window, with script? I think
you can add some script in the onload client event of LoginPage to force it
on top. Will this help?

Luke
 
J

Jeronimo Bertran

Luke,

I did call a script on the Onload....

function MakeTopmost()
{
if(window != window.top)
{
window.top.location.href = window.location.href;
}
}


The problem with this approach is that when I login again (after the
timeout), I get redirected back to the frame window but it also becomes a
topmost window.

Thanks

Jeronimo
 
M

[MSFT]

Hello Jeronimo,

As I understand, you want the login page will topmost window but not the
redirected page after login, is this correct? Did you use Iframe or
frameset? If with frameset, you may resize the the frame instead of :

window.top.location.href = window.location.href;

For example, when login, make the login frame 100% of the topmost window;
after redirect, make it 30%. Will this help on the issue?

Luke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,089
Members
48,773
Latest member
Kaybee

Latest Threads

Top