开发者

Set Cookies on subdomain?

开发者 https://www.devze.com 2023-01-16 02:46 出处:网络
I have the site blah.com. I need to set 3cookies + use google analytic. I would like to set it as www.blah.com so when i serve images (on blah.com or static.blah.com) it is cookie-less.

I have the site blah.com. I need to set 3cookies + use google analytic. I would like to set it as www.blah.com so when i serve images (on blah.com or static.blah.com) it is cookie-less.

Is this possible? How do i do it? I am using jquery-cookies and开发者_C百科 asp.net


Simply set the domain attribute of the cookie to "www.blah.com"

0

精彩评论

暂无评论...
验证码 换一张
取 消