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?

Menu