The website provides many templates for the backend management system, all of which are html. I only learned the jump verification of php. I would like to ask, how to add login verification to html?
It seems to be added in the html file Without entering PHP's $islogin type of judgment, the session cannot be read. So if the user directly opens the HTML web page, how to judge a non-logged in user and let him jump to the login page.
If it is ajax verification, should we use session or how to judge?
The verification code is written in PHP. The principle of login verification is that PHP generates the verification code and saves it in the session. Then the verification code entered by the user in the form is submitted to the php file for user login verification. We can then determine whether the user has submitted it. Are the verification code and session in the form the same?