How does the front end set up cookie, to send to the back end?

here"s the thing. I wrote an h5 page, which is nested in app.
but the h5 page has an interaction, which must be a login status.
but because in app, it can be operated as long as app is logged in, but there is no way to get login status
in h5. Therefore, you need to determine whether app is logged in. If app is not logged in, log in
but do this after logging in. Calling excuse cookie in h5 should be based on login information.
then the question arises:
should app send the current login information to the frontend, and then the frontend should set cookie, or can app set the cookie, of webview itself? I just need to adjust the interface at the frontend.

Mar.12,2021

feels like you don't understand how cookie is generated. Cookie is the information saved by the web server in the browser, of course, it can also be written manually;
is your h5 interdependent login status or what?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e44670-4376b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e44670-4376b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?