Session and emergency access
Access should have a lifetime
A session represents an authenticated interaction that continues across requests. An inactivity timeout limits idle time, while an overall timeout limits time since authentication or qualifying reauthentication. In a fictional stock application, the idle limit is 15 minutes and the overall limit is 60 minutes. These numbers are teaching assumptions, not universal requirements. Real limits depend on assurance, resource risk, policy and the application’s supported behavior.
Calculate two independent deadlines
The session begins at minute 0 and its last eligible activity is at minute 12. Without reauthentication, the idle deadline is minute 27 and the overall deadline is minute 60. At minute 26 the session can remain active if other conditions still hold; at minute 27 it expires in this model. If the last activity were minute 55 instead, the overall deadline would still be minute 60. Ordinary activity does not reset that deadline; successful qualifying reauthentication can reset both under the applicable policy.
Review permissions and audit outcomes
An access review asks whether a person still needs a resource permission, not merely whether they recently signed in. When an employee changes departments, the resource owner should review and remove permissions no longer needed, then verify the effective outcome. A session, gateway connection and application token may have separate lifetimes. Revocation and logout are not necessarily propagated immediately between components. Record actor, resource, action, decision, time and review owner; minimize private data and never store tokens or passwords in audit records.
Govern emergency access
Emergency access (break-glass) is a documented recovery capability for situations where normal administration is unavailable. Before an incident, identify approved custodians, secure independent recovery mechanisms where appropriate, define permitted uses, test readiness and monitor use. In the fictional bookstore, normal administrative sign-in fails during an outage. The authorized incident lead follows the documented recovery process, limits emergency actions to restoration, records the incident and ends elevated use afterward. Review every use, restore ordinary controls and reassess affected credentials. Emergency access is not a routine shortcut; its exact design must reflect the platform and avoid a shared failure dependency.
Practice: expiry and recovery
A session starts at minute 10, with last activity at minute 20 and the same 15/60 limits. Find the first expiry without reauthentication. Separately, write a recovery review checklist for a simulated identity-service outage: authorized custodian, reason, bounded actions, logging, end of access and post-incident review. Do not create real accounts. Next: wireless and mobile network security.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Session and emergency access — knowledge check
Reason about fictional enterprise remote-access policies.
Start 0, last activity 12, idle 15, overall 60. What is the first expiry?
Start 0, last activity 55, idle 15, overall 60. When does this model expire?
What should trigger a permission review when a worker changes jobs internally?
What is a legitimate reason for emergency access?
What should happen after an emergency access event?