4.25 Work Diary - Password Guess three automatic sealing IP

xiaoxiao2021-03-05  47

Today, in order to prepare the code to prevent password guessing, the same user enters the password for three consecutive errors, write the IP address to the database.

Solution: Create a session storage login attempt failed, when the number is> = 3, perform data operations

Confusion: Session.SetAttribute is built how string how to become an int type 1

New Discovery Problem: If you use the session, turn off the IE variable is invalid. So consider using cookies

转载请注明原文地址:https://www.9cbs.com/read-31986.html

New Post(0)