amilner42 / code-tidbit

Share Programming Knowledge Better
GNU General Public License v3.0
9 stars 1 forks source link

No Sessions For Anon Users #219

Closed amilner42 closed 7 years ago

amilner42 commented 7 years ago

We already have too many sessions and hardly anyone is using the website. This is gonna take way too much memory. I think on express-session you can do saveUninitialized: false, which will prevent the session from being saved to the DB unless it's modified (logged-in) in which case it will be saved.

The session-madness needs to end ASAP