title: Role Based Session Expiring Duration in Asp.Net Identity
body: <p>My Application is having 3 types of Asp.Net User Roles. Currently every user is having Cookie Expiration Time of 10 days. I am able to set this at Startup Class using this code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>app.UseCookieAuthentication(new CookieAuthenticationOptions
  {
      AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
      LoginPath = new PathString("/Home/Login"),
      ExpireTimeSpan = new TimeSpan(10, 1, 0, 0, 0),
      SlidingExpiration=true,
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>The problem here is that this sliding expiring time is applied to all kind of users in the system. I am not able to figure out how can we set the expiring time of cookie based on the Role of the user who've just logged in.</p>
  
  <p>Any help will be greatly appreciated.</p>
  
  <p>Thanks</p>