Home  >  Article  >  Backend Development  >  PHP separates the front-end and back-end. How to transfer the username of the login page to the page entered after logging in?

PHP separates the front-end and back-end. How to transfer the username of the login page to the page entered after logging in?

WBOY
WBOYOriginal
2016-09-27 14:18:062845browse

The front-end and the back-end are separated. The front-end only allows html css javascript, and the back-end only allows php, and no mixing is allowed. So how to transfer the data of the login page to the hmtl page entered after logging in?

Reply content:

The front-end and the back-end are separated. The front-end only allows html css javascript, and the back-end only allows php, and no mixing is allowed. So how to transfer the data of the login page to the hmtl page entered after logging in?

The backend returns the SessionID and uses JS to update the Cookie

Just use ajax

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn