Memory is the treasure house of the mind wherein the monuments thereof are kept and preserved.
Chapter 8Focus on Session Management
In the last chapter we looked at authentication and how to make it difficult for impersonators to steal credentials. This is critical for security, but weâd lose users immediately if they were forced to retype their password every time the application tried to do something. This is why we need sessions.
Think of sessions as pieces of your serverâs short-term memory. When you authenticate to the application, the server remembers who you are for a set amount of time. Sessions make the application convenient to use and your users happy, but if you donât create and manage sessions securely, theyâll ...
Get Secure Your Node.js Web Application now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.