IAM glossary
What is Session?
What keeps you signed in after login, usually a cookie. There are at least two: one at the identity provider and one in each app, and logout must end both.
How it works
A session is how a system remembers that you already signed in. After login the server creates a session (an id stored server-side, or a signed token) and the browser keeps a reference, usually in a cookie. Every following request carries it, so you do not type the password again.
There are several sessions at once: one at the identity provider (for SSO), one in each application, plus the tokens. Ending all of them is what makes logout real. Sessions need an idle timeout, an absolute maximum and, for sensitive actions, re-authentication.
A simple example
You sign in to online banking at 9:00. The bank sets a cookie with your session id. At 9:10 you check your balance without logging in again. At 9:25, after 15 minutes of inactivity, the session expires and the bank asks you to sign in before showing anything else.
Common mistakes
- Session cookies without
HttpOnly,SecureandSameSite. - Not changing the session id after login (session fixation).
- Logout that ends the app session but leaves the IdP session open, so the next click logs you straight back in.