Password protecting an asp.net site using a log in page
问题 I am trying to password protect an asp.net site, i have done this okay, however if they put /home.aspx at the end of the address then it will by pass the log in page, is there a way of making those other pages only accessible through the buttons, and if they are accessed directly it will redirect you to the login page? THanks 回答1: At the moment you login you should start a session. This is some code I used in one of my high school projects > public void LoginUser(string id, string mail,