search

Home  >  Q&A  >  body text

How to save session-related data in php jwt?

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梦过去多啦不再A梦2747 days ago536

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 13:18:45

    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)

    reply
    0
  • Cancelreply