Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Close the Session of a User after a Defined Time Frame
WhatsApp
Abhay Shanker
11y
3.4
k
0
0
25
Blog
Below are the Powershell commands that enables you to close the session of a login user after a defined time frame, if the user is idle or not doing any activity on the SharePoint Site.
$
sts
=
Get
-SPSecurityTokenServiceConfig
$
sts.UseSessionCookies
= $true
$
sts.FormsTokenLifetime
= (New-Timespan –Minutes 5)
$
sts.LogonTokenCacheExpirationWindow
= (New-Timespan –Minutes 5)
$sts.Update()
iisreset
Close the session of a user after a define time frame
Up Next
Programmatically Check whether Current Logged in User is a Member of SharePoint User Group or Not
Ebook Download
View all
Getting Started with SharePoint Framework Development using TypeScript, PnP JS, and React JS
Read by 4.9k people
Download Now!
Learn
View all
Membership not found