$cookie.get("JSESSIONID") always return undefined even if JSESSIONID cookie is set by the browser.
Angular version: 1.4.9. Checked on Chrome 51.0.2704.103 and Firefox 44.0.2
Please, provide a runnable demo (e.g. using CodePen, Plnkr etc) or the exact steps and code to reproduce this. Without a concrete reproduction, there is no way we can investigate this.
@pienikrz I tried this in plnkr and I am able to get the value from the cookie. Check this plunker:
Closing since there was no response from the OP and we don't have a reproduction.
Happy to reopen when/if you can provide more info and/or a reproduction.
Still happening to me, angular 1.6.2 and angular-cookie 1.6.2.
I'm on a gulp development environment with browser-sync, angular-ui-router.
These are the "steps" (sorry no time now to update the plunker already provided), I payed attention to not cause any page reload from browser-sync.
I'm having the same issue
Most helpful comment
Still happening to me, angular 1.6.2 and angular-cookie 1.6.2.
I'm on a gulp development environment with browser-sync, angular-ui-router.
These are the "steps" (sorry no time now to update the plunker already provided), I payed attention to not cause any page reload from browser-sync.