Using Sessions
In this chapter, I explain how Node.js applications can correlate HTTP requests to create sessions, which allow the results of one request to affect the outcome of future requests. Table 13.1 puts this chapter in context.
Table 13.1: Putting sessions in context
Question |
Answer |
What are they? |
Sessions correlate the requests made by a user, allowing requests to be associated with one another. |
Why are they useful? |
Sessions allow stateful application features to be implemented using stateless HTTP requests. |
How are they used? |
Cookies are used to transmit small amounts of data or a session ID that is associated with data stored by the server... |