After WeChat Mini Programs successfully logged in, did he use the skey returned by the server as the id to identify the user?

the skey mentioned here is a key calculated by the server to get session_key and openid corresponding to session_key.

(if you haven"t understood what I"m talking about skey by now, please read this article. https://juejin.im/post/5ac9b7...

for example, if a user logs in successfully and goes to his home page, do I take this skey to the server to query the data?


you can use openid to identify users. It's better to use unionid if you can get unionid.

session_key will change. If you use this to calculate a value as a user flag, then the next time it changes, it is equivalent to a new user?

Menu