Home > Backend Development > PHP Tutorial > 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
Release: 2016-09-27 14:18:06
Original
2875 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template