Because it is a third-party public platform, and then useful to jssdk things, need to use Access_token and jsapi_ticket, but the problem is, for example, now a public number called JSSDK, it will save a access_token and Jsapi _ticket, put in access_token.php and jsapi_ticket.php inside, and if now B public number to call JSSDK, will appear invalid signature this error, Because B reads the Access_token and Jsapi_ticke that a just cached. Is there any way to solve this problem? is a and B calls mutually exclusive?
Reply to discussion (solution)
No one's mentioning anything?
Deposit Memcache,redis, local files, database can ah. Take the time to determine the expiration time, expired on the re-fetch, and then save, no expiration on the use of this.
Deposit Memcache,redis, local files, database can ah. Take the time to determine the expiration time, expired on the re-fetch, and then save, no expiration on the use of this.
Memcache,redis What are these 2? Which method is more convenient to use? I used the database.
With a unique identification mark.
Of course, the program must be revised.