Foundations · Unit 14 · Lesson 1 of 2
Identity, credentials, and sessions
Follow a fictional account from registration to sign-in, return visits, and recovery.
Helpful before thisAuthentication
After this lesson you can
- Distinguish an account identifier, identity proofing, and authenticator control.
- Explain how a session carries an authenticated context across requests.
- Describe why recovery and session revocation are separate lifecycle decisions.
Maya joins a fictional online reading club as “RiverReader.” The service assigns her an internal account identifier. Her display name helps people recognize her, but it is not a secret and may change. The account identifier lets the service connect her reviews, preferences, and access decisions without relying on a nickname as proof.
Identity has more than one meaning
Identity proofing establishes confidence in a claimed identity using an appropriate process and evidence. A service that verifies professional qualifications has different needs from a casual book club. Authentication instead checks control of an authenticator associated with an account. A pseudonymous member can authenticate correctly without having supplied a legal name.
A password is a knowledge-based authenticator. A cryptographic authenticator can prove control of a key without transmitting the private key. A local device check may unlock use of that key. These distinctions explain why seeing a username or unlocking a screen is not automatically evidence that a remote service accepted a sign-in.
A session continues the context
After sign-in, the club may issue a cookie containing an unpredictable identifier. The server connects that identifier to session state: which account authenticated, when, and under what conditions. The next page request can refer to that session instead of asking Maya to repeat the original proof each time.
The cookie is the browser’s delivery mechanism. It does not need to contain a password or a readable identity record. The application must still check that the session is valid, and separately decide whether the requested action is allowed. An expired session cannot be made current merely by keeping an old browser tab open.
Endings need explicit rules
An inactivity timeout and an overall lifetime solve different problems. The first limits idle sessions; the second limits how long authentication remains sufficient even if activity continues. Exact durations depend on the service and its requirements. A sensitive action may also require fresh authentication.
PredictMaya changes her password on her laptop. Must her phone’s existing session end immediately?
Not automatically. The application must define and implement whether password changes revoke other sessions. The phone may hold an independently valid session or token. The interface should make the actual behavior clear.
Recovery is another path to control
Maya loses a device. Recovering the account means establishing enough confidence to bind replacement authenticators or restore access. A strong everyday sign-in method is undermined if recovery accepts much weaker evidence without considering the consequences. Accessible recovery still matters: protection that permanently excludes legitimate members creates another failure.
Separate the decisions: replace the lost authenticator, invalidate its future use, and review sessions that were already established. These actions are related but need not happen automatically together. A useful account interface explains which devices remain connected and which recovery methods are available.
Finally, a successful sign-in says nothing by itself about permission to edit another member’s review. Follow the account context into authentication versus authorization to see the next decision.
Check yourself
No timer. No penalties. Read the explanation and try again whenever you like.
This lesson’s questions have changed. Your reading progress is saved; review the updated questions.
-
RiverReader is visible on a profile. What does knowing that name establish?
Show the answer
Correct answer: Which displayed account name someone is referring to. Recognition and authentication are different jobs.
-
In the club’s described session design, what does the cookie carry?
Show the answer
Correct answer: An identifier linked to server-held session state. The server can maintain account context behind an unpredictable identifier.
-
Why distinguish an idle timeout from an overall lifetime?
Show the answer
Correct answer: Activity and elapsed authentication age are different conditions. One can reset with activity while the other still limits total session age.
-
A lost authenticator is replaced. What still needs consideration?
Show the answer
Correct answer: Invalidating the old authenticator and reviewing existing sessions. Replacement, revocation, and session management need explicit handling.
Try it
- WriteDraw four cards for an invented book-club account: register, sign in, browse, recover. Write the evidence checked and the state created or ended at each transition. Use no real credentials.