Slack Keeps Logging Me Out: Why It Happens and How to Stop It
Slack keeps logging you out when your workspace admin set a session duration, when your browser deletes Slack's cookies, or after a password change or sign out of all sessions. How to tell which one it is, and what you can change yourself.
On this page
- 1. Why Slack keeps signing you out
- 2. Your admin set a session duration
- 3. Slack logs you out of the browser
- 4. You changed your password or signed out everywhere
- 5. Single sign-on sends you back to the login page
- 6. Slack keeps logging me out on iPhone or Android
- 7. Slack keeps logging you out on Linux
- 8. Signed in, but shown as away
- 9. FAQ
Slack keeps logging you out for one of four reasons. Your workspace admin set a session duration, which signs members out when they close Slack or after a set time. Your browser deletes Slack's cookies when it closes, or you use a private window. You changed your password or someone chose sign out of all sessions. Or your company's single sign-on session expired. If Slack warns you two hours and again 15 minutes before it signs you out, it is the admin setting, and only an admin can change it. If it only happens in one browser or on one device, the cause is on that device, and you can fix it.
Each sign-out also ends your presence on that device, so you show as away until you sign back in.
Why Slack keeps signing you out
| What you see | Likely cause | What to do |
|---|---|---|
| Signed out every time you close Slack | Admin session duration: sign out on close | Ask your admin |
| Signed out every few days, with a warning first | Admin session duration: a time limit | Sign back in when warned, or ask your admin |
| Only in the browser, after each restart | Cookies cleared on exit, private window, or cookie blocking | Allow cookies for slack.com, or use the app |
| Right after a password change | Other sessions ended | Sign in once on each device |
| Company SSO page every morning | Identity provider session expired | IT sets this |
| Only in the Linux Snap app | Snap package not keeping the session | Try the .deb or .rpm build |
| Only on your phone | Mobile session duration or a device policy | See the mobile section |
Your admin set a session duration
Workspace owners and admins can limit how long members stay signed in, on every Slack plan. They set desktop and mobile separately, under Admin, Workspace settings, Security, then Desktop session duration or Mobile session duration. The options are to sign members out whenever they close Slack, or after a set period.
Slack's help center adds two details that help you recognise it:
- • Members get a warning two hours before the session expires and a final reminder 15 minutes before, with an option to sign in again.
- • When an admin changes the duration, sign-outs start that day and spread out over the chosen period, so coworkers get signed out at different times.
- • "Clear cookies and site data when you close all windows" in Chrome, or the same setting in Firefox, Edge or Safari. Add
slack.comandapp.slack.comas sites that can always use cookies. - • Private or incognito windows. They drop all cookies when closed.
- • Cleaner apps and privacy extensions that wipe cookies on a schedule.
- • Strict third-party cookie blocking can break sign-in for some SSO setups. Allow cookies for your company's sign-in domain too.
You cannot override this from your own preferences. If the limit gets in the way of your work, ask your admin whether the desktop limit can be longer than the mobile one.
Slack logs you out of the browser
Slack in a browser keeps you signed in with a cookie called d. Anything that deletes it signs you out:
The desktop app keeps its own session, so switching to it often stops the problem. If Slack links keep opening in the browser instead of the app, see Slack keeps opening in the browser. How the d cookie works is covered in Slack xoxc and xoxd tokens.
You changed your password or signed out everywhere
Slack ends your other sessions when you choose to sign out of all sessions, and your admin can also sign members out of all devices. After a password change or a security reset, sign in once on each device and it stays signed in again. To see which sessions you have, open my.slack.com/account and select Access Logs. To leave a workspace for good rather than sign out, see how to delete your Slack account.
Never appear "away" on Slack again
Cloud-based. No downloads. Works 24/7 even when your laptop is off.
Single sign-on sends you back to the login page
If your company signs you in through Okta, Google Workspace, Microsoft Entra ID or another identity provider, that provider has its own session length. When it expires, Slack asks you to sign in through it again. The fix is an IT policy, not a Slack setting.
Slack keeps logging me out on iPhone or Android
Slack keeps logging you out on Linux
Reports on the Ubuntu forum describe the Snap version of Slack not keeping its session between restarts. Install the .deb or .rpm package from Slack's download page instead, or use Slack in a browser that keeps cookies. Keeping Slack running on Linux has its own guide: keep Slack active on Linux.
Signed in, but shown as away
Staying signed in is not the same as showing as active. A signed-in Slack still turns your dot grey 10 minutes after your last keyboard or mouse input; see why Slack keeps showing you as away. And if Slack says it is trying to connect rather than asking you to sign in, that is a connection problem, covered in Slack showing everyone offline.
FAQ
Why does Slack keep logging me out?
Most often an admin session duration or a browser that clears cookies. A warning two hours before sign-out means it is the admin setting.
How do I stay logged in on Slack?
Use the desktop app or a normal browser window that keeps cookies for slack.com. If your admin set a session duration, you will still need to sign in again when it ends.
Can I change Slack's session duration myself?
No. Only workspace or org owners and admins can change it.
Why does Slack ask me to sign in every time I open it?
Your admin chose to sign members out whenever they close Slack, or your browser deletes cookies when it closes.
Does being logged out make me show as away?
Yes. With no signed-in session reporting activity, your dot shows away.
Stop Jiggling Your Mouse.
Join hundreds of remote workers who never worry about their Slack status. Set it up once, stay green forever.
Related Articles
Fake Slack Active Status: What Works and What Gets Noticed
Seven ways people fake an active Slack status, which ones hold up, and the thing that gives most people away. It isn't the dot.
How to Keep Slack Active All Day, Hour by Hour
A normal workday has about five moments where Slack flips you to away. Here's each one, in order, and the cheapest fix for it.
Slack Yellow Dot: Slack Has No Yellow Status
Slack only has two availability states, and neither one is yellow. If you see a yellow dot, it's a theme, an emoji, or a different app.