How to save session-related data in php jwt? For example, in the session, the data related to this session can be saved in the session, and it will be directly taken out and used through the session next time.
A token is generated and returned during the first request, and this token is brought with every subsequent request. Data related to the session can be serialized or json_encoded, and then the token and corresponding data can be saved (db, redis, or file are all acceptable)
A token is generated and returned during the first request, and this token is brought with every subsequent request. Data related to the session can be serialized or json_encoded, and then the token and corresponding data can be saved (db, redis, or file are all acceptable)