Logout and double login page

Dear all,I’m using this JS to logout from my web application. It works on firefox. and in ie it gives double login page.

my frame set has 2 frames one with a page and the other with a form…how can i overcome this

here is my JS

if (window.confirm(“Are you sure you want to logout?”)) {

var strDatabase = location.pathname.slice(0,location.pathname.indexOf(“.nsf”))+“.nsf”;

//database path

var strRedirectURL = top.location.protocol+“//”+top.location.host+strDatabase+“?opendatabase”;

//redirect path

top.location.replace(“?Logout&redirectTo=”+strRedirectURL);

}

Subject: Logout and double login page

Hi,

When you works with frames, you must specified the target frame.

“top.location” is the frameset location not the frame location). You have two frames in the frameset, let’s say “frameA” and “frameB”, for work in the “frameB” use something like this:

parent.frames[‘frameB’].location.replace(blahblahblah:-)

HTH

Thierry