Some pages you may not want to let unrelated people see, such as admin pages. Through a form, a conversation (session) Change, a query statement and its three lines of code to achieve the password protection of the Web page. Susan
First, create a database table named Tbllogin, then create two fields (field names), one called "UserName", and the other is "Password". Set the initial values for two fields so that you can enter the protected page with this initial value.
Next, you need to add a session ("allow") = False in the Session_OnStart of the Global.asa file. When you enter the correct username and password, this value will become true, allowing you to enter the protected page. This session is invoked every time a protected page is accessed.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.