Web development - Concept
Session
A period of interaction with a system that lasts until the user leaves, logs out or it expires
What's it for?
Lets a system remember enough about an ongoing interaction to keep it working from one step to the next.
For example…
A shopping site keeps a session while a customer browses so the basket still contains the products they added on the previous page
A banking session expires after inactivity, forcing the user to sign in again before viewing sensitive information