title: Use web api cookie for mvc cookie
body: <p>I'm making a web application by using Web API 2 and MVC 5.</p>
  
  <p>My app has api :
  api/account/login, which is used for checking posted information and throw status 200 when an account is granted to access application.</p>
  
  <p>Also, I have one view : /Home/Index which is only available to authenticated client.</p>
  
  <p>Now, my approach is :</p>
  
  <ul>
  <li>Call api/account/login, receive the cookie thrown from that api.</li>
  <li>Attach thrown back cookie to browser.</li>
  <li>When user access /Home/Index, view is available for him/her.</li>
  </ul>
  
  <p><strong>My questions are :</strong></p>
  
  <p><strong>- Is my approach possible ?</strong></p>
  
  <p><strong>- How can I encrypt my cookie in Web API 2 like MVC 5 does to its cookie ?</strong></p>
  
  <p>Thank you,</p>