Why store sessions on the server instead of inside a cookie?

前端 未结 4 422
闹比i
闹比i 2021-02-05 17:58

I have been using Flask for some time now and I am really enjoying the framework. One thing that I fail to understand is that in almost all other places they talk about storing

4条回答
  •  后悔当初
    2021-02-05 18:43

    The SecureCookie implementation Flask uses does not encrypt the values. The only thing that is being ensured is that the user cannot modify the cookie without knowing the secret used by the application.

提交回复
热议问题