windows.opener not working in external pages [closed]

1

I've developed a system that works on my server, but not from third parties. When I click to move, I run the onunload function with windows.opener, to close the window automatically, and change the login status in the parent windows. It works on my server, but not on others.

See my code:

<script type="text/javascript">
    window.onunload = refreshParent;
    function refreshParent() {
        window.opener.VerificarLogin("<?php echo $_SESSION["usuario"]["email"]; ?>","<?php echo $_SESSION["usuario"]["codigo"]; ?>"); 
    }
    window.close();
</script>

obs: I'm trying to create the same thing the system disqus (comments system) does. When you log out, they change the login status not to one window, but to all automatically.

    
asked by anonymous 18.09.2016 / 17:07

0 answers