My asp.net base page redirects to the login page automatically with the following code in case of authentication issues:
response.write("<script>window.open('" & LoginPage & "','_parent');</script>");
I'm wondering if there is a security risk with using JavaScript to redirect to another page. Is it secure?