Hi,
My login page is being framed..
This is the scenario,
I am using frames in a web site and the first time that the user enters the
site he/she has to login.
Top frame - Links Page
Bottom frame - Login page
Once he is logged in he can browse the site. Somethimes I open another
frameset in the bottom frame. So it becomes:
Top frame - Links Page
Bottom frame divided in two: Left and Right frame.
If for some reason the session expires, the login page is not displayed
using the entire bottom frame. Instead, it is displayed where the user was
active.
I have to write a code at the top of the login page so that it checks if the
login page is beeing displayed in the bottom frame using the entire space
and not inside another frame.
The pseudo code would be something like this:
if login page is not displayed in the bottom frame (I have top frame and
bottom frame) then
force it to be displayed in the bottom frame code (maybe using
"location")
end if
Please could someone help me with this code.
Cheers,
Claudio