Home  >  Q&A  >  body text

Found that <li><a href="/index.php">Return to the front desk</a></li>After returning to the homepage, you are not logged in.

The code of this lesson cannot be connected to the previous lesson. I found <li><a href="/index.php">Return to the front desk</a></li>After returning to the homepage, the login status is gone.

The front page is still realistic for login and registration. Instead of publishing articles and logging out after logging in

What is the problem?

王先生王先生1820 days ago1465

reply all(3)I'll reply

  • 卢小强

    卢小强2019-11-20 09:02:17

    Look at the web page code, it should be judged by if statement to display two different states

    reply
    0
  • 王先生

    In fact, you need to log in to the backend first, and then log in to the frontend again in order to switch freely.

    王先生 · 2019-11-20 11:58:33
    卢小强

    Is there something wrong with the logic? What kind of program must first go to the background and then go to the foreground in order to switch freely?

    卢小强 · 2019-11-21 09:50:43
  • Cancelreply