当前位置:网站首页>cookie、session、token

cookie、session、token

2022-06-25 23:29:00 orangeox

cookie、session、token

session A large amount of data in the mechanism exists in the server , Resulting in increased server pressure , And in the case of multiple servers , Only the receiving server has the name of the current user sessionID, Other servers do not , It's going to be a big problem .
token Signature verification to identify the user's identity , A large amount of data will not be stored on the server . Reduce the pressure on the server .
When different users access the server, they will be in session Object to store key value pairs ,“ key ” Used to store and open the user information “ The key ”, After successful login ,“ The key ” adopt cookie Return to the client , Client store as sessionId Recorded in the cookie in . When the client accesses again , It will be carried by default cookie Medium sessionId To implement the session mechanism .
session Is based on cookie Of .
Reference resources :
https://blog.csdn.net/m0_46251547/article/details/123456692

原网站

版权声明
本文为[orangeox]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206252009326769.html