Forum Discussion

Erik's avatar
Erik
Icon for Nimbostratus rankNimbostratus
Nov 03, 2016

iframe problem

We have a web portal that allow the user to start an authentication process. That again start a frame that contains different authentication selections.Username/password, OTP, BankID... By selecting the method, it start an Access Policy inside this frame and give the user the authentication window (Java script)

 

When having this frame open and if the user select to start a new method to authenticate (outside of the frame)- brings the user inside the frame and he can choose authentication method. Choosing one gives the user the error message in the frame "Access Policy evaluation is already in progress".

 

The message is correct and would give a meaning if this had been started from another tab - but not in a frame.

 

How can I reslove this? I had tried different solutions with irules that delete the MRHS session cookie and reset the session but it give not the result I want.

 

The best result would been that when a usere select a new auth.method - it reset all and start again.

 

Thanks!

 

1 Reply

  • Hi,

    in your authentication method page, execute the following javascript to request logout (even if there is no session)

    function closeIt()
    {
        var req = new XMLHttpRequest();
        req.open("GET", "/vdesk/hangup.php3", false); // false
        req.send();
    }
    
    window.onload = closeIt;
    

    each time the user will request this page, the session will be closed.