How to return to the homepage with this user's information after logging in, and display it in "Welcome $name to this website", what a worry! A small problem will be solved in a day, and sometimes it won't be solved at all. If self-study is not very savvy, is the efficiency so poor?
Verify the account in the database and obtain the name field at the same time, and then save it to the session. The front-end page is retrieved from the session.