title: AngularJS: Storing an object in a cookie giving result of [Object Object]
body: <p>I am trying to store a group of user credentials in a cookie when sending in this user object to my service - </p>
  
  <pre><code>this.SetCookie = function (user) {
      $cookies.user = user;
  }
  </code></pre>
  
  <p>However what I get when I try to retrieve this cookie I do not get an object but just a string that says "[Object Object]"</p>
  
  <p>I can store all the user credentials individually in their own cookies, as I know I can make that work, but it seems pretty inefficient? Is there an easy fix for this? The top result I found for this problem was related to JQuery and did not work for me.</p>