I am attempting to redirect users when there session var does not equal 2. I have been having no luck with my code below,
The page is an .net page. Any help would be valuable. Thanks you
The page is an .net page. Any help would be valuable. Thanks you
Code:
<%If Session("Usr_Group") != "2" then %>
<script LANGUAGE='Javascript'>
alert('You are being redirected to the Login Screen')
top.location.href="logon.asp"
</script>
<%End IF%>