I have the following code at the top of pages to ensure someone has logged in. If not, they are redirected to login and then back. It works.
If Session("user_Login" = "" Then
%>
<script language="Javascript">
document.location=("../login.asp?referer='" + document.URL +"'"
</script>
<%
End If
However, before it shoots off to the login page, there is a quick flash of the page the person has actually visited.
Since the code above the first on the page, I can't understand why it is getting past it to show the rest of the page.
Any ideas?
Steve Davis
hey.you@hahaha.com.au
If Session("user_Login" = "" Then
%>
<script language="Javascript">
document.location=("../login.asp?referer='" + document.URL +"'"
</script>
<%
End If
However, before it shoots off to the login page, there is a quick flash of the page the person has actually visited.
Since the code above the first on the page, I can't understand why it is getting past it to show the rest of the page.
Any ideas?
Steve Davis
hey.you@hahaha.com.au