Hi Philip, did you ever get this resolved? I'm using Umbraco 10 and facing the same issue. We have an API logging the user in but the cookie is returning with the domain "mysite.com" but it's not letting me configure it to allow subdomains, e.g. "test.mysite.com". It seems to be strictly set to whichever domain is handling the authentication.
I did manage to change the lifespan of the cookie with:
Unfortunately I've not managed to find a solution yet. I needed it for a proof of concept that has since been parked, but it would be good to know if this is possible for future.
It may be worth opening an issue on the GitHub repo.
If you do open a ticket drop a link here and I'll subscribe to it 👍🏻
Set cookie domain for members
Hi guys,
Does anyone know how to set the cookie domain for front end members? I want the cookie to be for the top level domain:
mydomain.com
but it's currently using the subdomainapi.mydomain.com
.PS I'm using Umbraco 11.
Hi Philip, did you ever get this resolved? I'm using Umbraco 10 and facing the same issue. We have an API logging the user in but the cookie is returning with the domain "mysite.com" but it's not letting me configure it to allow subdomains, e.g. "test.mysite.com". It seems to be strictly set to whichever domain is handling the authentication. I did manage to change the lifespan of the cookie with:
but this seems to be ignoring "options.Cookie.Domain = ".mysite.com"
Any help with this would be greatly appreciated. Thanks.
Hi Rob,
Unfortunately I've not managed to find a solution yet. I needed it for a proof of concept that has since been parked, but it would be good to know if this is possible for future.
It may be worth opening an issue on the GitHub repo.
If you do open a ticket drop a link here and I'll subscribe to it 👍🏻
Cheers & good luck!
is working on a reply...