> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Automatic Logout

> Understand when and why MoEngage automatically logs you out of your account, and how to log back in after each automatic logout scenario.

MoEngage automatically logs you out of your account in some scenarios. The following table lists those scenarios and how you can log in to your account again:

| Scenario                                                                                                                                                                                                              | To log in again:                                                                                                                                                                                                                                                                                                                                                                                  |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Your session expires. See [Session Expiry](#session-expiry) for the timeout durations that apply.                                                                                                                     | <ol><li>Go to the login URL of your MoEngage account.</li><li>[Log in using your credentials](/docs/user-guide/getting-started/initial-setup/log-in-to-moengage).</li></ol>                                                                                                                                                                                                                            |
| You switch between workspaces that have different login methods.<br />For example, workspace 1 uses Google Sign In only, and workspace 2 uses Single Sign On (SSO) only.                                              | <ol><li>Go to the login URL of your MoEngage account.</li><li>[Log in using SSO](/docs/user-guide/getting-started/initial-setup/log-in-to-moengage).</li></ol>                                                                                                                                                                                                                                         |
| You switch between workspaces that have different authentication mechanisms.<br />For example, 2-step verification is disabled in workspace 1 and enabled in workspace 2.                                             | <ol><li>[Set up 2-step verification on your device](/docs/user-guide/getting-started/initial-setup/log-in-to-moengage#set-up-2-step-verification-on-your-device).</li><li>Go to the login URL of your MoEngage account.</li><li>Log in using your credentials.</li><li>On the 2-Step Verification page, use the 6-digit verification code generated by your authenticator app and verify it.</li></ol> |
| Your Admin has not enabled 2-step verification at the workspace level, and you have logged in to your account. You or your admin enables 2FA settings for your workspace.                                             | <ol><li>[Set up 2-step verification on your device](/docs/user-guide/getting-started/initial-setup/log-in-to-moengage#set-up-2-step-verification-on-your-device).</li><li>Go to the login URL of your MoEngage account.</li><li>Log in using your credentials.</li><li>On the 2-Step Verification page, use the 6-digit verification code generated by your authenticator app and verify it.</li></ol> |
| Your admin enables Google login or SSO options.                                                                                                                                                                       | <ol><li>Go to the login URL of your MoEngage account.</li><li>[Log in Using the Sign in with Google Option](/docs/user-guide/getting-started/initial-setup/log-in-to-moengage).</li></ol>                                                                                                                                                                                                              |
| Your admin revokes your access within the workspace.                                                                                                                                                                  | Request your admin to grant you access again. Otherwise, you cannot log in to your account.                                                                                                                                                                                                                                                                                                       |
| Your IT team enables firewall settings for your workspace, but your credentials do not match the firewall criteria. That is, your IP address does not match the list of IP addresses allowed to access the workspace. | Contact your IT team to either change your IP address or change the IP addresses allowed to access the workspace.                                                                                                                                                                                                                                                                                 |
| Your admin changes your role.                                                                                                                                                                                         | <ol><li>Go to the login URL of your MoEngage account.</li><li>[Log in using your credentials](/docs/user-guide/getting-started/initial-setup/log-in-to-moengage).</li></ol>                                                                                                                                                                                                                            |

## Session Expiry

MoEngage enforces the following timeout durations to end a session:

* **Idle Timeout (24 Hours)**: MoEngage automatically logs you out of the platform after 24 hours of inactivity. If you take no action within this window, your session expires, and you must re-authenticate to resume work.
* **Refresh Timeout (60 Days)**: To minimize disruptions to your workflow, MoEngage extends active sessions using refresh tokens. For security compliance, MoEngage enforces a hard session limit every 60 days. After this period, you must log in again, regardless of recent activity.
