<% Response.Buffer = True If Session.Contents("status") = "" Then Response.Redirect "login.asp" End If %> Login Test Welcome

Please note that the above links do not lead anywhere and are meant as a demonstration.