title: Does the asp.net RoleManager really cache the roles for a user in a cookie if so configured?
body: <p>In my web.config I have the Role Manager configured as follows:</p>
  
  <pre><code>&lt;roleManager enabled="true" cacheRolesInCookie="true" cookieName=".ASPROLES" 
  cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" 
  cookieSlidingExpiration="true" cookieProtection="All"&gt;
  </code></pre>
  
  <p>however in our custom RoleProvider it would seems that the GetRolesForUser method is always being called, rather than as I would have expected, the RoleManager serving up the roles from its cookie.</p>
  
  <p>We're using something like to get the roles for a user:</p>
  
  <pre><code>string[] myroles = Role.GetRolesForUser("myuser");
  </code></pre>
  
  <p>Is there something that I'm missing in the configuration, or in the use of the RoleManager</p>