pallets-eco / flask-session

Server side session extension for Flask
https://flask-session.readthedocs.io
BSD 3-Clause "New" or "Revised" License
501 stars 239 forks source link

The same session id does not support concurrency #149

Closed choidi closed 9 months ago

choidi commented 1 year ago

When the requests with the same session id comes, the RedisSessionInterface save_session function set value without lock or compare with the original session value, it may cause the latest modified value is covererd by the old one. It is not need to update redis value and set cookie in every response.

christopherpickering commented 1 year ago

@choidi Can you explain how you would change the code, or give a snippet? Are you refering to permanent session?

Lxstr commented 9 months ago

Closed in favour of #193