Stateless web application, an urban legend?

前端 未结 3 1998
忘了有多久
忘了有多久 2021-02-06 03:58

I am trying to understand token-based authentication these days, which claims to be a stateless authentication method. And I met the concept of s

3条回答
  •  深忆病人
    2021-02-06 04:11

    I don't think stateless authentication and stateless applications are related in the way you think; the word stateless is being used in two different contexts here.

    Stateless authentication is a method of identifying who a client is without carrying any information/state from a previous client request or interaction, unlike cookies for example.

    Stateless web applications? Sure, they're possible, but it entirely depends whether or not user data must be persisted, that is, it really depends on the application in question.

提交回复
热议问题