本文介绍了您能否仅为domain.tld和www.domain.tld设置cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能否仅为domain.tld和www.domain.tld设置cookie,以便如果您转到任何其他子域(例如bla.doamin.tld),将不会设置cookie?

Can you set a cookie only for domain.tld and www.domain.tld so that if you go to any other subdomain (bla.doamin.tld for example) the cookie won't be set?

推荐答案

您可以执行此操作。此Cookie规范中提到了它:

You can do this. It's mentioned in this cookie spec: http://curl.haxx.se/rfc/cookie_spec.html

这篇关于您能否仅为domain.tld和www.domain.tld设置cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-17 01:31