Search code examples
azurewifacs

Azure ACS session lifetime


Say I sign into my site with ACS. Then close the browser, then reopen the site... it asks me to sign-in again. I would like it so it doesn't ask me to signin for a week or so after I authenticate with ACS the first time. How does one go about accomplishing this?


Solution

  • Add the following attributes, this will persist the cookie with an extended lifetime.

    <wsFederation ... persistentCookiesOnPassiveRedirects="true">
        <CookieHandler ... persistentSessionLifetime="60"/>
        ...
    </>