Join our Newsletter — 33% off our NHI Course
Home› Guides› Session Timeouts for Beginners: Why Sites Sign You…
Guide Identity & Access Management (IAM)

Session Timeouts for Beginners: Why Sites Sign You Out and When to Tick Remember Me

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 11 min read
On this page

A session timeout is the time limit after which a website or app makes you sign in again.

This guide is for anyone who has wondered why their bank signs them out after a few minutes while a shopping site remembers them for months. If you run a business, the same settings decide how long a lost laptop or a copied cookie can be used to reach your accounts.

In short

  • After you sign in, a site gives your browser a temporary pass, so you do not type your password on every page.
  • Sites end that pass after a quiet spell (an idle timeout) or after a fixed time (an overall timeout).
  • Ticking "remember me" or "stay signed in" keeps the pass after you close the browser, which is handy on your own device and risky on a shared one.
  • Signing out, or using "sign out of all devices", asks the site to cancel the pass, so a copied pass should no longer give access.

What you will learn

  • Explain why some sites sign you out quickly and others do not.
  • Decide when to tick "remember me" and when to leave it.
  • Check which devices are still signed in to an account.
  • Ask the right questions about timeouts for your team's apps.
Temporary pass (session)
the signed-in state a site keeps for you after you prove who you are.
Time limit (session timeout)
the rule that ends the session, either after a quiet spell or after a set time.
Stay signed in (remember me)
an option that keeps you signed in after you close the browser.

What is a session timeout?

Think of a desk in a busy library. If you leave it empty for too long, staff may give it to someone else. And whatever you do, the library closes at night.

Websites work in a similar way. When you sign in, the site starts a session, a record that says "this browser has already proved who it is". Your browser holds a small file called a cookie that points to that session.

A site usually ends the session in one of two ways. An idle timeout ends it after you have done nothing for a while. An overall timeout (sometimes called an absolute timeout) ends it after a fixed time, however busy you are.[1]

The "remember me" box is like a season pass for the library. You keep your place for weeks, even after you go home.

Where the comparison stops working: library staff can see who sits at the desk. A website only sees the cookie. If someone copies your cookie, the site may treat them as you until the session ends.

Why does it matter?

A session is a shortcut past your password and, often, past your second sign-in check. The longer it lasts, the longer a stolen or forgotten one can be used.[1]

If you use a shared or library computer

What could happen: you close the browser, the next person opens it and lands in your email.

Check this: leave "remember me" unticked and press sign out before you walk away.

Next: Session Tokens and Cookies for Beginners

If you run a small business

What could happen: a staff laptop is lost while it is still signed in to your accounts software for weeks.

Check this: find out how long each business app keeps people signed in, and how to sign a user out remotely.

Next: How to Revoke All Sessions for a Compromised User

If you are new to IT work

What could happen: you reset a hacked user's password but leave their old sessions running.

Check this: after a password reset, also end the user's existing sessions in each app.

Next: Global Token Revocation Guide

What does it look like?

Here is a made-up summary of the timeout settings for three sites. Real sites rarely show this, but it helps to see the choices side by side.

Example only. All values are made up.

Site                  Idle timeout   Overall timeout   Remember me
Example Bank          10 minutes     8 hours           not offered   (1)
Example Shop          none           30 days           ticked        (2)
Example Work Email    1 hour         24 hours          admin decides (3)
  1. A bank guards money, so it ends quiet sessions fast and does not offer "remember me".
  2. A shop keeps you signed in for a month, so anyone using your browser could reach your basket and saved address.
  3. At work, the IT team often sets these rules for everyone, so the box you see may already be decided.

Why this is risky: long sessions on a shared or lost device give the next person your account without a password.

The safer way: match the time limit to what the account protects. Short limits for money and email, longer ones only on your own locked device. Security guidance gives example ranges: an idle limit of a few minutes for high-value apps, and 15 to 30 minutes for low-risk ones.[1]

How does it work?

  1. You sign in. You give your password and any second check. The site creates a session and gives your browser a cookie that points to it.
  2. You browse. Each time you click, the browser sends the cookie back. The site sees it and lets you in without asking again.
  3. The clock runs. The site notes when you last did something and when you first signed in. It should check these times on its own computers, not just in your browser.[1]
  4. A limit is reached. If you were quiet too long, or the overall time is up, the site ends the session and asks you to sign in again.
  5. Remember me changes step 4. The site stores a longer-lasting cookie that survives closing the browser. Some sites use it to start a fresh session quietly when you come back.[3]
  6. Signing out ends it early. A proper sign out cancels the session on the site's side. Deleting the cookie alone does not cancel a copy someone else already has.[1]
Timeline diagram titled Two clocks end a session. A bar runs from Sign in on the left to Must sign in again on the right. The top clock, Idle timeout, resets each time you click, and ends the session if you do nothing for a set time, for example 15 minutes. The bottom clock, Overall timeout, starts at sign in and ends the session after a fixed time, for example 8 hours, even if you are busy. A green bar says whichever clock runs out first ends the session.
Figure 1. Two clocks: the idle timeout resets when you act, the overall timeout does not.

Big sign-in services show how these choices play out. Microsoft's work accounts, for example, ask "Stay signed in?". Choosing Yes stores a lasting cookie in the browser. By default, Microsoft uses a rolling 90-day window before asking people to sign in again.[3]

Official US guidance sets upper limits by how strong the sign-in is. For the middle level, it says people should sign in again at least every 24 hours, and after no more than an hour of inactivity. For the highest level, those limits are 12 hours and 15 minutes.[2]

Before and after diagram titled Closing the browser versus signing out. Left panel, labelled Risky: Remember me is ticked on a shared computer, the browser is closed, the cookie stays on the computer and the next person opens the site already signed in. Right panel, labelled Safer: Remember me is left unticked, the person presses Sign out, the site cancels the session on its side, and the next person sees the sign-in page.
Figure 2. Closing the window is not the same as signing out.

A worked example

Pia Grover runs a small fictional cake shop with three staff. She uses one office laptop for orders, email and the shop's online bank.

One Monday, her assistant Hugo Osei mentions that the laptop opened straight into Pia's email. Pia had ticked "stay signed in" months ago, and never signed out.

Pia remembers the library desk. A season pass is fine when only you use the desk. It is not fine on a desk the whole team shares.

She makes three changes. First, she creates separate user accounts on the laptop, so each person has their own browser. Second, in her email account she opens the list of signed-in devices. She sees an old tablet she sold last year, still listed, and signs it out.[4]

Third, she checks her bank. It already signs her out after a few quiet minutes, which used to annoy her. Now she sees why.

She also changes her email password, because the old tablet had been signed in. She then uses the option to sign out of other devices, so once the change takes effect, a copied session should no longer give access.

In the records available to her, she finds no sign-ins she does not recognise. She makes a note to look at the device list every few months.

Myths and mistakes

What people thinkWhat is true
Closing the browser signs me out.Not always. Browsers can restore sessions, and "remember me" cookies survive closing. Press sign out.[1]
Changing my password signs out everyone else.Some sites do this, others do not. Look for "sign out of all devices" as well.
A short timeout means the site is badly made.Sites that guard money or health records often choose short limits on purpose.
Remember me is always unsafe.On your own locked phone or laptop it is a fair trade. On a shared device, leave it off.
If my session times out, my work is lost for nothing.The timeout is doing its job. Save drafts often on sites with short limits.

What can I do this week?

  • Open your main email account and review the list of signed-in devices. Sign out any you do not recognise.
  • Untick "remember me" on any shared or work-from-anywhere computer.
  • Set your phone and laptop to lock after a short time, because a long session is only as safe as the device.
  • If you manage staff, ask your IT supplier how long each business app keeps people signed in.

Checklist

  • I sign out, not just close the window, on shared computers.
  • "Remember me" is used only on my own locked devices.
  • My devices lock themselves after a few minutes.
  • I check signed-in devices on my email and bank accounts every few months.
  • After a password change, I also sign out of other devices.
  • Our business apps have agreed idle and overall time limits.
  • Someone in the team knows how to sign a user out remotely.

Common questions

Why does my bank sign me out so quickly?

Because a bank account guards money. A short idle limit means a phone or laptop left open is less useful to the next person. Security guidance suggests just a few minutes for high-value apps, so a quick sign-out is a deliberate choice, not a fault.

Should I tick "remember me"?

Tick it only on your own device, protected by a screen lock. Leave it unticked on shared, borrowed or public computers. On those, the next person could open the site and find you still signed in, without needing your password.

What does "sign out of all devices" do?

It asks the site to cancel every session for your account, not just the one in front of you. You then sign in again on each device. It is a good step after a lost phone, a sold device or a password you think someone has seen.

Does a session timeout protect me if my cookie is stolen?

Partly. A copied cookie may work until the session ends, so shorter sessions shrink that window. Signing out early and "sign out of all devices" help more. For how cookie theft works, see Session Tokens and Cookies for Beginners.

Do apps and software use sessions too?

Yes. A non-human identity (NHI) is a digital identity, or the credential behind it, that lets software connect without a person. Many NHIs use tokens that expire. Shorter lifetimes and a way to cancel them early reduce the harm if one is copied.

Where next?

Ready for the detail? Read the practitioner guide: Persistent Login and Session Timeout Guide. It goes further into choosing timeouts by risk, designing remember-me tokens safely and asking people to sign in again before sensitive actions.

Also useful:

Related NHI Mgmt Group resources: How to Revoke All Sessions for a Compromised User · Session Hijacking and Cookie Theft Guide · Token and Session Security Guide

Key terms

Session
The signed-in state a site keeps for you after you prove who you are.
A small file a site stores in your browser, often used to point to your session.
Idle timeout
A limit that ends a session after a set time with no activity.
Overall timeout
A limit that ends a session a fixed time after sign-in, however active you are.
Remember me
An option that keeps you signed in after the browser closes, using a longer-lasting cookie.
Session hijacking
Taking over someone's signed-in session, usually with a copied cookie or token, without needing their password.

Sources and further reading

  1. Session Management Cheat Sheet. OWASP Cheat Sheet Series, OWASP Foundation. https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html, accessed 28 Nov 2026.
  2. NIST Special Publication 800-63B-4, Digital Identity Guidelines: Authentication and Authenticator Management (reauthentication section). National Institute of Standards and Technology. https://pages.nist.gov/800-63-4/sp800-63b.html, accessed 28 Nov 2026.
  3. Optimize reauthentication prompts and understand session lifetime for Microsoft Entra multifactor authentication. Microsoft Learn, Microsoft. https://learn.microsoft.com/en-us/entra/identity/authentication/concepts-azure-multi-factor-authentication-prompts-session-lifetime, accessed 28 Nov 2026.
  4. See devices with account access. Google Account Help, Google. https://support.google.com/accounts/answer/3067630, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.