-1

I am building an application with flask. I would like to know how much data you can store in a session variable without it having to much impact on the performance. For me it could be for instance possible that a list of 200 ID's would need to be stored. What do you guys think?

Ma Linu
  • 1
  • 1

1 Answers1

-1

I think you can do this but, session data in Flask is limited by the size of the cookie usually 4 KB

Ahmadsh
  • 1
  • 1
  • Thank you for your reaction, so you don't think this would have a noticable impact on the performance of my application? – Ma Linu Aug 17 '22 at 21:05
  • I think it is very little impact. In general, storing multiple data in sessions is not something that experts like, because sessions read to memory frequently and instantaneously the better use storing in cache or database – Ahmadsh Aug 17 '22 at 23:05