Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In
Tech Blog > Posts > Forms Authentication Cookie Expiration
November 18
Forms Authentication Cookie Expiration

When using an ASP.NET Membership provider to authenticate users to SharePoint, the default expiration of the 'Remember Me' cookie is 30 minutes. Adjusting the cookie expiration is an easy task, just add the 'timeout' property to the 'forms' element in the web.config for the site. This value is measured in minutes, so the value below expires the cookie after 30 days.

<authentication mode="Forms">
     <forms loginUrl="/_layouts/login.aspx" timeout="43200" />
</authentication>

Comments

There are no comments for this post.