Generally, post forms and sessions are used, and cookies are also used in the long term.
if session[login]=yes. redirect to xx page, xx page needs to be written by yourself, and it will be displayed only after login. If not logged in, it will jump to the login interface.
All background interfaces must determine whether to log in.
otherwise. .
Use JavaScript to get the content of the front-end page
And then AJAX POST to the backend?
Generally, post forms and sessions are used, and cookies are also used in the long term.
if session[login]=yes. redirect to xx page, xx page needs to be written by yourself, and it will be displayed only after login. If not logged in, it will jump to the login interface.
All background interfaces must determine whether to log in.
otherwise. .