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

前端 未结 4 480
闹比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条回答
  •  萌比男神i
    2021-02-05 18:24

    If the session data is needed at the server, it makes sense to store it at the server. It keeps down the data bulk sent back and forth from the client. Also, cookies have a limit on the amount of data they can store.

提交回复
热议问题