title: Setting cookie expiration for OpenIdConnectAuthentication
body: <p>I'm trying to set an expiration date for OIDC cookie. I tried to set <code>AuthenticationTicket.ExpiresUtc</code> in <code>Notifications.SecurityTokenValidated</code> but the <code>.AspNet.Cookies</code> cookie expiration time is still "Session" in browser. Is there a way to do this?</p>
  
  <pre class="lang-cs prettyprint-override"><code>app.UseCookieAuthentication(new CookieAuthenticationOptions
              {
                  AuthenticationType = CookieAuthenticationDefaults.AuthenticationType,
                  CookieHttpOnly = true
              });
  
  var oidcOptions = new OpenIdConnectAuthenticationOptions
              {
                  UseTokenLifetime = false,
                  ..
                  SignInAsAuthenticationType = CookieAuthenticationDefaults.AuthenticationType,
                  Notifications = new OpenIdConnectAuthenticationNotifications
                  {
                      SecurityTokenReceived = n =&gt;
                      {
                          n.AuthenticationTicket.Properties.ExpiresUtc = System.DateTimeOffset.UtcNow.AddMinutes(30);
                          return Task.FromResult(0);
                      }
              };
  </code></pre>
  
  <p>I'm using ASP.NET MVC .NET 4.5.2, Owin 4.0.1</p>