title: MVC 5 Role based Permissions (Authorization)
body: <p>I want to implement Role based authorization in mvc 5, i am using asp.net identity 2.0 for user authentication.</p>
  
  <p>Please suggest how to implement this by using authorize attribute or any other possible way.</p>
  
  <p>I also want to store user rights after login and do not want to fetch again and again from database while authorizing on controller action. (Don't want to use Session).</p>
  
  <p><a href="https://i.stack.imgur.com/3ECSC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3ECSC.png" alt="enter image description here"></a></p>
  
  <pre><code>[![Role Permissions stored in DB][1]][1]
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/GkHlc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GkHlc.png" alt="**Role Permissions stored in DB**"></a></p>