在写域名的时候要把域名设置为cookie.Domain = ".cnblogs.com";
如果是forms验证则
<authentication mode="Forms"> <forms name=".DottextCookie" loginUrl="login.aspx" protection="All" timeout="480" path="/" /> </authentication>