Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以从子域http://subdomain.domain.com中删除http://domain.com中的 cookie
如果已从域或同一子域设置了 cookie,则可以将其删除。
当您制作 cookie 时,其中一个参数是域
Response.Cookies["nameof"].Domain
如果您未设置该参数,则获取从 url 读取的域。
如果此参数没有子域domain.com,则可以从所有子域访问 cookie。
domain.com
如果此参数具有子域,例如,www.domain.com则只能从该子域访问。
www.domain.com