[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[],[],null,["# Admin settings - Sessions\n\nBy default, when a user logs in to Looker, they are given an option to stay logged in. This option appears as a checkbox at the bottom of the login page.\n\nThe **Sessions** page, in the **Authentication** section of the **Admin** menu, lets you configure whether users have the option to stay logged in, how long they stay logged in if they don't choose that option, and whether they can stay logged in from multiple devices.\n| **Note:** If you have a permission that provides access to only select pages in the Admin panel, such as [`manage_schedules`](/looker/docs/admin-panel-users-roles#manage_schedules), [`manage_themes`](/looker/docs/admin-panel-users-roles#manage_themes), or [`see_admin`](/looker/docs/admin-panel-users-roles#see_admin), but you don't have the [Admin role](/looker/docs/admin-panel-users-roles#default_roles), the page or pages that are described here may not be visible to you in the Admin panel.\n\nInactivity Logout\n-----------------\n\nBy default, a user stays logged in to Looker for a set length of time that is determined by the [**Persistent Sessions**](#persistent_sessions) and [**Session Duration**](#session_duration) settings, regardless of whether the user is actively using Looker.\n\nIf you enable **Inactivity Logout**, users are automatically logged out of Looker after 15 minutes of inactivity. Activity is defined as a user clicking anywhere in Looker, or touching the screen in the case of touchscreens, or typing anything into Looker. Therefore, if this setting is enabled, a user is logged out if they don't click or type anything for 15 minutes.\n\nTwo minutes before the user will be logged out, Looker displays a dialog to warn the user and give them the opportunity to stay logged in.\n\nWhen a user is forcibly logged out as a result of inactivity, they are logged out of their inactive session. A session is unique to each browser, so if a user has multiple tabs open and logged in to Looker, they are logged out on all tabs. But, if they are logged in through multiple browsers, they are logged out only of the session on the inactive browser.\n\nAny unsaved changes in the [Looker IDE](/looker/docs/looker-ide) are stored. When the user logs back in and loads a file that has any unsaved changes in it, they are given the option to restore the unsaved changes.\n\nWhen **Inactivity Logout** is enabled, [**Persistent Sessions**](#persistent_sessions) is automatically disabled. In addition, [**Session Duration**](#session_duration) is set to a default of one day. The **Session Duration** setting can still be changed. The value set in **Session Duration** remains the maximum length of time a user can stay logged in, even if they are active the entire time.\n\nFor example, if **Inactivity Logout** is enabled and **Session Duration** is set to 5 hours, a user will be logged out under these circumstances:\n\n- If the user remains inactive for 15-minutes at any time during the 5-hour period, they will be logged out after the 15-minute inactivity period.\n- If the user has been active during the entire 5-hour session, a dialog screen will prompt them to re-authenticate to continue working. If the user doesn't re-authenticate, they will be logged out.\n\nAdditionally, with these settings, a user who has been active for 4 hours and 50 minutes before becoming inactive for 10 minutes will still be logged out after the 10-minute inactivity period. **Session Duration** remains the maximum time a user can stay logged in.\nUsers who access Looker using either the [Looker API](/looker/docs/api-getting-started) or a [signed embed](/looker/docs/single-sign-on-embedding) are *not* affected by **Inactivity Logout**.\n\nPersistent Sessions\n-------------------\n\n| **Note:** Starting in Looker 24.0, **Persistent Sessions** is disabled by default for all users. The **Persistent Sessions** value won't change on instances where the default value has been previously modified.\n\nWhen a user selects the option to stay logged in, they will be authorized to access Looker for 30 days. When they close and reopen their browser, they can navigate to Looker without being required to log in again.\n\nDisabling **Persistent Sessions** removes the \"Stay logged in\" option from the login screen. Users will be automatically logged out after the amount of time specified in the **Session Duration** section, or whenever they close their browser. This forces users to re-authenticate the next time they access Looker.\n\n**Persistent Sessions** is automatically disabled when [**Inactivity Logout**](#inactivity_logout) is enabled.\n\nSession Duration\n----------------\n\nBy default, when a user does not select the option to stay logged in, their session will expire after 30 minutes.\n\nTwo minutes before a session expires, the user is given the option to extend the session. If the user doesn't extend their session, their session ends and they are logged out of Looker.\n\nThe **Session Duration** field lets you change the amount of time a user can stay logged in before they will be notified and their session will expire. You can set this value from 5 minutes to 30 days.\n\n- If the **Session Duration** is 30 minutes or less, then the extended session will be the same duration as the session duration. For example, if the **Session Duration** is 5 minutes, then the extended session will also be 5 minutes.\n- If the **Session Duration** is more than 30 minutes, then the extended session will still be 30 minutes. For example, if the **Session Duration** is 1 day, then the extended session will be 30 minutes.\n\nIf [**Inactivity Logout**](#inactivity_logout) is enabled, **Session Duration** must be set to a value between 15 minutes and 1 day. If **Session Duration** is set to a value outside of this range, the value will be set to 1 day.\n\nConcurrent Sessions\n-------------------\n\nBy default, users can remain logged in to Looker from multiple browsers and devices simultaneously. Disabling **Concurrent Sessions** lets you require users to log in from only one browser and device at a time. When **Concurrent Sessions** is disabled, a user is automatically logged out of any other browser session when they log in from a different browser or device.\n\nSession Location\n----------------\n\nIf **Session Location** is enabled, a user's location will be tracked when they log in to Looker. This location information is based on the user's browser IP address and is available to users and admins on the **Sessions** page for visibility and management of sessions. The location information can help admins determine which sessions are current and which sessions should be deleted.\n\nIf **Session Location** is disabled, whenever a user logs in to Looker, their location won't be tracked."]]