The public number is available via OAuth for user OpenID, but is it always a request? Or will it take a session or a localstorage program?
Reply content:
The public number is available via OAuth for user OpenID, but is it always a request? Or will it take a session or a localstorage program?
The first time must be to do OAuth, get to OpenID or Unionid saved to your background, and then return to the User a SID (session ID), generally this SID is placed into the client's cookie in the server, note that the setting cookie when the client expires The expiration time between the session and the server is the same. It is certainly possible to deposit Sid Localstorage, but a bit of non-mainstream is not recommended.
After authorization to get the OpenID in your session, the session storage time is not long, you need to skip to the authorization page when you do not get to OpenID in session to pull the user information, because the page authorization to get the user interface does not have the number of calls limit all need not worry
Https://github.com/thenbsp/wechat/blob/master/documentation/oauth.md