Glossary
Session token
Definition
Session token: A secret value a website or app issues after a successful sign-in and checks on later requests to recognize the signed-in user without asking for the password again. Whoever presents it is treated as that user until the session ends.
Also known assession IDsession identifiersession secretsession key
In short
A session token is the secret value a site or app issues after you sign in and checks on every request, so you don't re-enter your password. Whoever holds it is treated as you, which is why it must be random, renewed at sign-in, kept away from page scripts, time-limited and ended on the server at sign-out. Infostealers and phishing proxies steal tokens to skip passwords and second factors.
Key takeaways
- OWASP calls a session ID temporarily equivalent to the strongest sign-in method the app uses.
- NIST names it a session secret issued at authentication to keep the session continuous.
- Tokens must be random, meaningless and renewed after sign-in to stop session fixation.
- Signing out has to end the session on the server, not only delete the browser's copy.
- NIST sets reauthentication limits, such as 24 hours overall and one hour of inactivity at AAL2.
Last reviewed 6 December 2026 by Foxcolab Team
A session token is the secret value a website or app gives you after you sign in, so it can recognize you on every later request without asking for your password again. OWASP calls the session ID "temporarily equivalent to the strongest authentication method used by the application" (OWASP): whoever presents it is treated as you. NIST's digital identity guideline calls it a session secret, one "issued by the verifier at authentication" that keeps an authenticated session going (NIST SP 800-63B-4).
Where it lives#
In a browser, the token usually travels in a session cookie. Mobile apps and APIs often send it in a header as a bearer token, and many systems split it into a short-lived access token and a longer-lived refresh token. The container changes; the job doesn't.
What makes one safe#
| Property | Why it matters |
|---|---|
| Random and meaningless | OWASP: "randomly generated and unpredictable," with no personal data inside |
| Replaced at sign-in | Renewing it "after any privilege level change" stops session fixation |
| Out of URLs and page scripts | URLs leak through history and logs; NIST says secrets "SHOULD NOT be placed in insecure locations (e.g., HTML5 Local Storage)" |
| Ended on the server | OWASP: at sign-out the app "must invalidate the session at least on server side" |
| Limited in time | NIST: ask people to sign in again at least every 30 days at its basic level; at AAL2, every 24 hours or after an hour of inactivity |
How tokens get stolen#
Infostealer malware copies them out of browsers, and adversary-in-the-middle phishing captures them during a real sign-in. A stolen token skips both the password and the second factor, which is why ending sessions on the server matters. See session hijacking.
In Foxcolab#
When you sign in, Foxcolab starts a session on its servers. The app's access token lasts a day and renews quietly, and a session ends after 180 days without use. Signing out in any Foxcolab app ends that session on Foxcolab's servers, not just in your browser. On Your devices, Sign out ends one device's session and Sign out all others ends every session but yours, and changing your password signs out every other session too (how). Two-step verification asks for a code at every sign-in. Create a free account.
Keep exploring
Related terms
- Session cookieA session cookie is either a cookie that disappears when the browser session ends or the cookie that keeps you signed in. Here's what each attribute does and why stolen ones matter.
- Access tokenAn access token is the short-lived credential an app sends with each request instead of your password. Here's what it holds, how long it should last and what ends it.
- Refresh tokenA refresh token is the long-lived credential an app trades for new access tokens, so you stay signed in without typing your password again. Here's how rotation and expiry keep it safe.
- Session hijackingSession hijacking is taking over someone's signed-in session by stealing or guessing the token that keeps them logged in. It skips the password and two-step verification entirely.
- Session fixationSession fixation is an attack in which someone plants a session ID they know in your browser before you sign in, then uses it to ride your signed-in session.
- Session timeoutA session timeout ends a signed-in session after a period of inactivity or a maximum age. See the two kinds, the limits OWASP and NIST suggest, and why signing out still matters.

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.