What is the difference between using $cookieStore and &window.sessionStorage? Are there times when one should be used over the other? Security Issues?
Here is what I know so far:
The AngularJS docs state that the $cookieStore service is backed by "session cookies" (https://docs.angularjs.org/api/ngCookies/service/$cookieStore). So, it appears that information stored with $cookieStore is tied to the window/tab where it is used. This is affirmed by the use of the mysterious $browser service in the code for $cookieStore: https://github.com/angular/angular.js/blob/master/src/ngCookies/cookies.js#L125.
However, since $browser is an internal service and subject to change, I can't see how it is storing the data, to see if it is similar to sessionStorage.
The same browser/tab/window scope seems to apply to $window.sessionStorage (Scope of sessionStorage and localStorage).