ASP.NET中会话ID的默认cookie名称是ASP.NET_SessionId.也可以将此名称更改为其他类似名称<sessionState cookieName="FooBar" />.
是否有成员可以轻松访问此名称FormsAuthentication.FormsCookieName?
Cla*_*edi 57
考虑到你说你在web.config上为cookie设置了一个不同的名字然后我会说你可以从那里读取cookie名称
SessionStateSection sessionStateSection =
  (System.Web.Configuration.SessionStateSection)
  ConfigurationManager.GetSection("system.web/sessionState");
string cookieName =  sessionStateSection.CookieName;