问题描述:

I'm using Javascript to set some cookie. I want to set the cookie that will be availiable on the same page I'm in right now and in a subdomain of the website.

for example:

im in : mysite.com/some-page-here

and i set cookie:

document.cookie = "my_cookie=value;expires=...;domain=.mysite.com;path=/"

I'm not sure how to get this cookie set only in this current page : mysite.com/some-page-here and in my subdomain app.mysite.com only and not be availiable for the rest of the domains.

thank you so much! hope you understand me. (and hope it is possible :))

相关阅读:
Top