divolte-collector icon indicating copy to clipboard operation
divolte-collector copied to clipboard

How to keep cookie consistent across subdomains from same script?

Open purijs opened this issue 4 years ago • 0 comments

I'm allowing a couple of website "example.com" and "example1.com" to use divolte scripts which are common for both of them.

Problem is, party_cookie set at "example.com" is different from "app.example.com". I know I can add the 'cookie_domain' param but since I'm allowing multiple website to consume the same script, I cannot hardcode the domain.

Is there some other alternative?

purijs avatar Jun 20 '20 12:06 purijs