Can the access_token of the official account be saved in Session?

can the access_token of the official account be saved in Session
whether each user"s Session is independent of each other, and each user will get access_token once

where does access_token exist under normal circumstances

Apr.15,2022

it's best not to save session. If you have several items on different servers on an official account, access_token will often fail


redis

first of all: according to the appid and appsecret of the platform official account required for the API to obtain access_token, we can see that the access_token is provided by Wechat to the developer to call the Wechat API, and has nothing to do with the user.

sessionaccess_tokensession
access_token (7200s)
   https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET


Menu