Mini Program login status problem

1. How does Mini Program record whether or not to log in?
I think the tutorial is not recommended to directly use openid as a logo, you need to build a layer of session, is that what you mean?
return Session:: ("login",$open_id);
2. Mini Program can"t cookie directly. Does it need to load session_id into wx.request?

Mar.01,2021

it seems that our project will automatically bring cookie with each request, and there is no need to deliberately operate in wx.request

if you want to temporarily store user information locally, you can use wx.setStorageSync () . You can save it after the first login, and get it in wx.getStorageSync () when needed

.

Menu