-
Security
Add session expiration and rotation
Makes sessions expire, rotate after login and privilege changes, and die on logout on the server side.
Free Prompt
What This Does / How This Helps
Gives your sessions a real lifecycle: they expire, they rotate to a fresh identifier after login and privilege changes, and logout actually kills them on the server instead of just clearing the browser. Sessions that live forever are a liability. If a token ever leaks (stolen laptop, logged request, shared screen), an attacker keeps access indefinitely. Rotation after login also shuts down session fixation, where an attacker plants a known session ID and waits for a victim to log in with it. Expect each change explained, plus replay tests you can run to prove an old token is dead after logout.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).