Page to be Protected: <% if Not Session("loggedin")="y" Then Response.Redirect("login.html") End If %> Data Page Hello -------------------------------- Login Form: Password
Password
-------------------------------- Login Action Page: <% if Request.Form("password")= "bill" Then Session("loggedin")="y" Response.Redirect("data.asp") Else Response.Redirect("login.html") End If %> -------------------------------- Code to be server-side included at top of pages to be protected: <% if Not Session("loggedin")="y" Then Response.Redirect("login.html") End If %> --------------------------------