I was able to develop a simple user name and password code that would enable users log into my website before viewing the home page.This worked.Now i have tried to apply this code below to ensure that no link when typed into the browser from any of my web page files will show unless the user login session is signed in as true(code below)
<%
If Session("BlnLoggedIn") <> True Then
Response.Redirect("login.asp")
End If
%>
I have tried to place this code at the top most of my html page but it doesnt seem to work instead the code appears on the html page browser when you view it...am i applying the correct code ?or am i not putting it at the right place on my html pages... i want to block users from viewing all my html pages unless the user login session is true according to my code..This would mean that if they are not logged in they would be redirected to the login.asp page...how do i go abt it??