Question

How can I stop sending cookie to only specific subdomain?

I have hosted images and assets in CDN. Its urls are

  1. images.website.com
  2. assets.website.com

I provide subdomains to all registered users, suppose

  1. user1.website.com
  2. user2.website.com
  3. and so on..

I need cookies to be sent in all the subdomain so that if I navigate from user1.website.com to user2.website.com I must be looged in.

But I dont want cookies to be sent to CDN url.

Is there any way to achieve it ?

Was it helpful?

Solution

Seems like there is no way to do so :(

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top