回复: 建议可以选择二级域名下程序共享cookies
找到utils.cs
自己改了编译下
记得有三个地方哦
///
/// 写cookie值
///
/// 名称
/// 值
public static void WriteCookie(string strName, string strValue)
{
HttpCookie cookie = HttpContext.Current.Request.Cookies[strName];
if (cookie == null)
{
cookie = new HttpCookie(strName);
}
//给Cookies加密
cookie.Value = strValue;
//设置Cookies域
cookie.Domain = "*.domain.com";
HttpContext.Current.Response.AppendCookie(cookie);
}