CSACyber Security AuditWebbandflow
Access control & authentication

Session Management

How an application keeps a user logged in securely across multiple requests.

What it is

After a user logs in, session management is how the application remembers them across subsequent requests, typically using a session identifier stored in a cookie. Good session management issues unpredictable identifiers, protects them in transit, expires them appropriately, and invalidates them on logout. Weaknesses here can let attackers take over active sessions.

Why it matters

A broken session can let an attacker stay logged in as a victim, bypassing the login entirely, so it is a frequent target.

How to fix it

Use strong random session identifiers, protect them with secure cookie flags, enforce timeouts and logout invalidation, and regenerate identifiers after login.

Related terms

References

← Back to the glossary