A browser often sends another request after a successful login. A session lets the application associate those requests with the signed-in account. One common approach uses a short identifier stored in a browser cookie.
Web Security · Lesson 5
Sessions and Cookies
Learn how a cookie connects browser requests to a web session.