I'm attempting to store a group of user credentials in a cookie by passing in a user object to my service's SetCookie function:
this.SetCookie = function (user) {
$cookies.user = user;
}
However, when I try to retrieve this cookie, instead of an object, all I get is a string that reads "[Object Object]".
While I can individually store each user credential in its own cookie, I find this method to be quite inefficient. Is there a simple solution to this issue? The top search result I came across regarding this problem involved JQuery and was not effective for me.