LeetCode Archiver (3): Authentication
LeetCode Archiver (3): Authentication Originally published in Chinese on 2019-01-11; this English edition preserves the original scope and technical context. Cookies and Sessions In order to obtain our own submission records, we must first log in. But we all know that HTTP is a stateless protocol, and each of its requests is independent. Whether it is a GET or POST request, it contains all the information for processing the current request, but it does not involve changes in status. Therefore, in order to maintain a persistent state on the stateless HTTP protocol, the concepts of Cookie and Session are introduced. Both are encrypted data stored in memory or hard disk to identify user-related information. ...