Change to session cookies for Claims Based Authentication

When you log into SharePoint using Claims Based Authentication, a cookie is written to disk to store the Claims information, which prevents you having to be authenticated each time you open a new browser or re-boot.
You can change the cookie to be session based by running this PowerShell script:

$sts = Get-SPSecurityTokenServiceConfig
$sts.UseSessionCookies = $true

You can revert back to a disk based cookie (default) by running this:

$sts.UseSessionCookies = $false


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s