Hacker News new | past | comments | ask | show | jobs | submit login

I didn't know about that middleware list, thanks for sharing.

About session rotation, it was my impression that it is a smaller problem compared to how it can be exploited if we're using cookies [1][2], could you share some more info about it please?

About Redis, I totally agree. You can add any store that you want with the plain `{ session: { store: ... } }` option. There is an issue though for some of them that need the original `session` passed in which I'll have to fix. So the main fix would really to improve the documentation to explain how to use the appropriate store.

Finally about socket.io, I also agree. I am not a large-scale system expert, so this is part of my limitations and that's why I recommend server.js for small-to-medium sized projects. Long-term I am working on improving on my knowledge here, but not the highest priority right now (compared to security for instance). Also, socket.io right now is not stable officially, so use with care. I'd love any help in here if you want to share some of your expertise.

[1] https://stackoverflow.com/questions/2846401/does-session-id-...

[2] https://www.owasp.org/index.php/Session_fixation




Note: socket.io is stable; I mean the internal glue for using socket.io with server.js




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: