Answered by:
SharePoint Online Session Timeout?

Question
-
Hi all,
Is there a way to configure Session Timeout for SharePoint Online? For example, after 4 hours of inactivity, user will be force sign-out.
I've been reading about it but from what I read, you can't change Session Timeout in SharePoint Online. It's defaulted to 5 days of inactivity but that is too long.
Is there a custom way / approach that can possibly be done?
Thanks!
Wednesday, September 16, 2015 5:19 AM
Answers
-
Hello,
Unfortunately it is not possible. SharePoint Online is very limited compared to SharePoint 2013/10.
Hopefully this will be available in future updates.
More information about the timeout duration: https://community.office365.com/en-us/f/154/t/273705
Wednesday, September 16, 2015 5:37 AM
All replies
-
Hello,
Unfortunately it is not possible. SharePoint Online is very limited compared to SharePoint 2013/10.
Hopefully this will be available in future updates.
More information about the timeout duration: https://community.office365.com/en-us/f/154/t/273705
Wednesday, September 16, 2015 5:37 AM -
https://support.office.com/en-gb/article/Session-timeouts-for-Office-365-37a5c116-5b07-4f70-8333-5b86fd2c3c40
Session timeouts for Office 365
<section class="ocpIntroduction">Session lifetimes are an important part of browser-based authentication for Office 365 and are an important component in balancing security and the number of times users are prompted for their credentials.
</section><section class="ocpSection">Session times for Office 365 services
When you authenticate to any of the Office 365 web apps, a session is established between your browser and the Office 365 web app you’re using. For the duration of the session, you won’t need to re-authenticate to the web app. Sessions can expire when you're inactive, when you close the browser or tab, or when your authentication token expires for other reasons such as when a password has been reset. Each of the different web apps in Office 365 have different session timeouts. The default timeout value is in line with how you normally use the app.
The following table lists the session lifetimes for Office 365 services:
Office 365 service
Session timeout
SharePoint Online
5 days of inactivity. Each time a user accesses SharePoint Online, the timeout value is reset to 5 days.
Outlook Web App
24 hours.
You can change this value by using the ActivityBasedAuthenticationTimeoutInterval parameter in the Set-OrganizationConfig cmdlet.
Skype for Business Server 2015 (Desktop/modern client)
The default and minimum value is 8 hours. The maximum value is 24 hours.
Skype for Business Server 2015 (web)
The default value is 8 hours. The minimum value is 15 minutes. The maximum value is what the actual sign-in token (e.g. OAuth token) specifies, or 8 hours if it is not specified in the sign-in token (e.g. OrgID token).
Skype for Business Server 2015 (web, anonymous user)
The default value is 1 hour. The minimum value is 5 minutes. The maximum value is 1 hour.
Azure Active Directory
(Used by Office 2013 Windows clients with modern authentication enabled)
Modern authentication uses access tokens and refresh tokens to grant uses access to Office 365 resources using Azure Active Directory. An access token is a JSON Web Token provided after a successful authentication and is valid for 1 hour. A refresh token with a longer lifetime is also provided. When access tokens expire, Office clients use a valid refresh token to obtain a new access token. This exchange succeeds if the user’s initial authentication is still valid.
Refresh tokens are valid for 14 days, and with continuous use, they can be valid up to 90 days. After 90 days, users will be asked to re-authenticate.
Refresh tokens can be invalidated by several events such as :
-
User’s password has changed since the refresh token was issued.
-
An administrator can apply conditional access policies which restrict access to the resource the user is trying to access.
Wednesday, September 16, 2015 6:40 AM -
-
Hello,
Do you know if this has changed since your last post?
Tuesday, August 9, 2016 9:27 PM -
Sorry for the late reply. We ended up using Javascript auto-logout in Masterpage. Just point it to the logout page of SharePoint and it will do the logout for you.
- Edited by WATER004 Thursday, August 11, 2016 1:56 AM
Thursday, August 11, 2016 1:55 AM -
Water004
We are looking for this exact solution - would you be willing to share the javascript you used?
Thanks!!
Monday, August 29, 2016 5:49 PM -
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/f91126ee-7720-47e8-8a10-60a37b59ef9b/auto-logout-after-idle-for-20mins?forum=sharepointgeneralpreviousWednesday, September 7, 2016 2:42 PM
-
Hi there, is there any update since then? Can that be modified for sharepoint Online Office 365?Saturday, May 20, 2017 5:22 PM
-
In case anyone is still looking for this, Microsoft has now provided a way to configure the idle session timeout.
- Via SharePoint Online SET-SPOBrowserIdleSignOut. However, this is not going to work, if the users has ticked the option "Keep Me Signed In". Luckily, you can disable the option via Azure AD > Company Branding.
- Via Azure AD policy, but this needs Azure AD Premium license.
Best regards,
Ahmed Amin
Monday, February 12, 2018 1:41 PM