What is a token? Condensed excerpts ~

Reference: https://www.jianshu.com/p/24825a2683e6

 

What is a token?

1. Introduction of Token: Token frequently requests data from the server on the client side, and the server frequently queries the database for user names and passwords and compares them to determine whether the user names and passwords are correct or not, and make corresponding prompts. In this context , Token came into being.

2. Definition of Token : Token is a string of strings generated by the server as a token for the client to request . After logging in for the first time, the server generates a Token and returns this Token to the client. The client only needs to bring this Token to request data, without having to bring the user name and password again.

3. Purpose of using Token: The purpose of Token is to reduce the pressure on the server , reduce frequent database queries, and make the server more robust.

 

 

Guess you like

Origin blog.csdn.net/weixin_42859280/article/details/109954711