C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
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.5
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
People also reading
Membership not found