After the user successfully logs in, he goes to the main page, clicks to enter another page, and automatically jumps back to the login page to log in. What may be the reason? User information: There is a session after the user successfully logs in. This is a mobile website. It is probably caused by some mobile phones not supporting sessions. Is there any way to solve this problem?
Find a few more test machines. In addition, Android webview requires permissions.
In this case, you can put the sessionid in the URL as a parameter and pass it to the server, and use session_id() to forcefully specify the session id every time, but there will be security risks
Session is saved on the server side, and there is no statement about whether the client supports it.
Generally, the session ID is stored in cookies. If the client does not support cookies, the session will be invalid.
I remember that PHP has a setting that can automatically put the session ID into the URL to solve the problem of the client closing cookies.
Related information here.
Good luck to you.
You can use LocalStorage and SessionStorage instead of Cookie