App interface development, user data is stored in the session. I thought the app did not have cookies. Now I don’t know that the app has the same cookie mechanism as the browser. The app request interface brings a token (actually it is session_id). Now it is The app passes the session_id through cookie and post, and if the cookie passes the session_id, the sessio data can be obtained by manually setting the session_id. I want to be able to manually set session_id to obtain session data without modifying the server configuration or disabling cookies.
if($_REQUEST['token']){
session_destroy();
if($_REQUEST['token']){
session_id($_REQUEST['token']);
}
session_start();
}
It should not be native development, but loading webview, otherwise it has nothing to do with cookies, and loading webview is no different from opening it in a browser.
But it should be feasible to add tokens. I feel like you should add the above judgment to the request base class, so that the data passed by the token should be the main one.