C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
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.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
People also reading
Membership not found