$.cookie
is only read access if no other parameters (but the cookie's name) are supplied to the method [See the source]
If you're interested in reading it, just supply $.cookie('UniqueID')
and remove the second parameter.
As an FYI, path
(and other cookie properties) are only relevant when assigning a value, not retrieving. In other words, you don't need to supply path:'/'
to get cookies that are applied to that path, document.cookie
should natively perform that check.