I want to set a cookie on the root path /
so it's available everywhere on the domain.
But the $cookies
service only accepts name
and value
, and always sets the cookie path
to the current page via self.baseHref()
.
Could the $cookies
service be extended to provide access to additional cookie properties like path
, expires
, domain
and secure
?
I quite like the API of the jquery.cookie
plugin: https://github.com/carhartl/jquery-cookie#usage. It keeps the common name=value
use case simple and allows to set additional cookie properties via a third options
object parameter.
I'm not very proficient in Javascript but I might try to implement something over the weekend.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4