How do I delete all sessions and cookies set by my Flask/python app. So that when users return they have to re-login. I want to do this each time I push a new version of the code to production otherwise.
- You could try changing your secret_key for each deployment. Otherwise, I don't think you have many options.JeffB– JeffB2013-02-06 19:56:11 +00:00Commented Feb 6, 2013 at 19:56
- If you store your sessions in Redis, you could just wipe them all.Martin Samson– Martin Samson2013-02-06 20:02:46 +00:00Commented Feb 6, 2013 at 20:02
- There are many options to store it, there are modules to save them in files and database, I mean, the same database you use for the other data. No real need to add Redis to your setup. I won't.m3nda– m3nda2022-07-06 11:49:00 +00:00Commented Jul 6, 2022 at 11:49
Add a comment |