sodcalculator

10 Tech How-To

Discord Keeps Logging Out? Fixes That Work

Guide 10-13203 · Updated · Step by step

If Discord keeps logging you out, the usual causes are a corrupted local cache, an outdated app, or a conflict between the app and your system’s date/time settings. The fixes below resolve the problem for most people in under ten minutes, starting with clearing Discord’s cache and checking your clock.

Why Discord Logs You Out Repeatedly

Discord stores your login token (a digital key that keeps you signed in) in a local file on your device. When that file becomes corrupted, Discord can no longer validate your session, so it forces a logout. The same thing happens if your computer’s date or time is wrong, because Discord’s security check uses timestamps to verify the token — a mismatch makes it look expired. Other common triggers include:

  • An outdated Discord client with a known session bug.
  • Third-party antivirus or VPN software interfering with Discord’s connection.
  • Multiple Discord instances running at once (e.g., the app and the browser).
  • Corrupted app data after a crash or forced shutdown.

Fix 1: Clear Discord’s Cache (Windows, Mac, Mobile)

The cache stores temporary files that help Discord load faster, but a corrupted cache is the #1 cause of random logouts. Clearing it forces Discord to rebuild those files without touching your account data or settings.

  1. Windows: Press Win + R, type %appdata%/discord, and press Enter. Delete the Cache, Code Cache, and GPUCache folders. (Do not delete the whole Discord folder — that would remove your settings.)
  2. Mac: Open Finder, press Cmd + Shift + G, type ~/Library/Application Support/discord, and delete the same three folders.
  3. Mobile (Android/iOS): Go to your phone’s Settings → Apps → Discord → Storage → Clear Cache. On iOS, you may need to uninstall and reinstall the app since iOS doesn’t expose a cache-clearing option.

After clearing, restart Discord and log in again. The problem should be gone.

Fix 2: Check Your System Date and Time

Discord’s authentication uses timestamps, so if your system clock is off by even a few minutes, the server may reject your token. This is especially common after a CMOS battery failure or when you travel across time zones without updating the clock.

  1. Windows: Right-click the clock → Adjust date/time → turn on “Set time automatically� and “Set time zone automatically.� Then click “Sync now� under Synchronize your clock.
  2. Mac: System Settings → General → Date & Time → enable “Set time and date automatically.�
  3. Mobile: Settings → General management → Date and time → enable “Automatic date and time.�

If the clock was wrong, sync it and then restart Discord. This fix is often overlooked because the logout appears random.

Fix 3: Update or Reinstall Discord

Discord updates automatically in the background, but if an update fails or is interrupted, the app can run with a half-broken session. Check for updates manually:

  • Windows/Mac: Press Ctrl + R (or Cmd + R on Mac) while Discord is open. This forces a reload and checks for updates.
  • Mobile: Go to the App Store or Google Play and check for a Discord update.

If you’re already on the latest version, a full reinstall often clears deeper corruption. Uninstall Discord, then download the latest installer from the official website. Your account data is stored on Discord’s servers, so you won’t lose anything except local settings.

Fix 4: Disable Hardware Acceleration and VPN/Antivirus Conflicts

Hardware acceleration lets Discord use your GPU to render the interface, but it can occasionally cause crashes that log you out. To disable it:

  1. Open Discord → Settings (gear icon) → Advanced.
  2. Turn off “Hardware Acceleration.�
  3. Restart Discord.

VPNs and antivirus software can also interfere with Discord’s connection. If you use a VPN, try disconnecting it and see if the logout stops. For antivirus, add Discord to the exclusion list or temporarily disable real-time protection (then re-enable it) to test.

Fix 5: Reset Discord’s Local Data (Nuclear Option)

If none of the above works, you can reset Discord’s entire local configuration. This wipes your custom themes, keybinds, and login token, but not your server memberships or messages.

  1. Close Discord completely (check the system tray on Windows).
  2. Navigate to the Discord folder as in Fix 1.
  3. Delete the entire discord folder (Windows: %appdata%/discord; Mac: ~/Library/Application Support/discord).
  4. Restart Discord — it will recreate the folder and ask you to log in again.

This is the most thorough fix and solves nearly all persistent logout issues. After this, your settings will be back to default, but your account is safe.

When It’s Not Your Device: Account Security and Server Issues

If you’ve tried everything and still get logged out, consider these possibilities:

  • Password change elsewhere: If you changed your password on another device, Discord logs out all other sessions for security.
  • Two-factor authentication (2FA) timeout: Some 2FA setups require re-authentication after a set period. Check your Discord settings under “Authorized Apps� to see if your session has an expiry.
  • Server-side outages: Discord occasionally has authentication issues. Check Discord’s status page or a site like downdetector to see if others report the same problem.

If you suspect your account was compromised, change your password immediately and enable 2FA. Do not share your token with anyone — that’s how accounts get stolen.

Frequently Asked Questions

Why does Discord log me out every time I close the app?

This usually means the local token file is being deleted or corrupted on shutdown. Try clearing the cache first, then check if your antivirus is quarantining the file. If the issue persists, reset the local data as described in Fix 5.

Does clearing Discord cache delete my messages or servers?

No. The cache only contains temporary files like images and emojis. Your messages, servers, and friends are stored on Discord’s servers. You will just need to log in again.

Why does Discord log me out on mobile but not on PC?

This often happens when the mobile app’s cache gets corrupted after an update. Clearing the app cache (or reinstalling on iOS) usually fixes it. Also check if your phone’s battery saver is killing Discord in the background, which can interrupt the session.

Can a VPN cause Discord to log me out?

Yes. Some VPNs change your IP address frequently, which can trigger Discord’s security checks. Try disabling the VPN or setting it to a static IP to see if the logouts stop.

Is there a way to keep Discord logged in forever?

Discord doesn’t offer a “stay logged in forever� option, but you can minimize the risk by keeping the app updated, not clearing your browser cookies if you use the web version, and avoiding multiple simultaneous logins. The fixes above should reduce the frequency to near zero.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →