Cookie path not settable using $cookies service
When using the $cookies service, there is no easy way to set the path of the cookie to match every path on the domain.
On line 3137 of angular.1.0.2.js the path of all cookies created is set as self.baseHref() When trying to write the same cookie from different paths this results in additional cookies being created due to the different path.
With no facility implemented to pass in a path, the path needs to be hard coded in order to be changed.
:+1:
:+1:
Did this ever get accepted?
:+1:
:+1:
:+1:
:+1:
:thumbsup:
We need this feature. +1
+1
+1
+1
+1
+1
:+1:
+1
+1
In the meantime you can use https://github.com/ivpusic/angular-cookie.
example :
ipCookie('cookie_key', data, { path: '/' });
+1
+1 I've finally used angular-cookie