Hey guys, I have a problem. I have situation where domain in m_domainTable starts with "." (dot), how can I get cookies from this kinda domain ? I can't create Uri with for example http://.testdomain.com
嘿伙计们,我有一个问题。我有m_domainTable中的域以“。”开头的情况。 (点),我怎样才能从这个域中获取cookie?我无法使用例如http://.testdomain.com创建Uri
alt text http://img19.imageshack.us/img19/1817/questionh.png
alt text http://img19.imageshack.us/img19/1817/questionh.png
1 个解决方案
#1
Try just using some dummy text in front of the domain. http://dummy.testdomain.com
尝试在域前使用一些虚拟文本。 http://dummy.testdomain.com
The . prefix indicates that the cookie is valid for any sub-domain or host inside the testdomain.
这个。 prefix表示cookie对testdomain中的任何子域或主机有效。
#1
Try just using some dummy text in front of the domain. http://dummy.testdomain.com
尝试在域前使用一些虚拟文本。 http://dummy.testdomain.com
The . prefix indicates that the cookie is valid for any sub-domain or host inside the testdomain.
这个。 prefix表示cookie对testdomain中的任何子域或主机有效。