Home  >  Q&A  >  body text

How to add login verification to the backend templates on and off the website?

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?

phpcn_u14927phpcn_u149272601 days ago1382

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-08-12 17:39:05

    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?

    reply
    0
  • Cancelreply