Alternative to HTTP Cookies?

前端 未结 3 1512
感动是毒
感动是毒 2021-02-04 04:32

They say Cookies are bad. I personally believe there should be a "smarter" way to detect the state of a user on a web app.

Say, currently this is how it works i

3条回答
  •  孤城傲影
    2021-02-04 05:06

    One of the Fundamental principals of REST, and I mean real REST is not to store state on the server, if there is no state on the server, then there is no need for a cookie to be used as a key to look that state up.

提交回复
热议问题