下面是我對窗體身份驗證代碼在asp.net但過一段時間用戶沒有我使用formsauthentication在我的應用程序,但它不工作
FormsAuthentication.SetAuthCookie記錄一段時間它是不工作的手段(authentificationString ,記住登錄);
string cookieName = FormsAuthentication.FormsCookieName;
HttpCookie authCookie = System.Web.HttpContext.Current.Request.Cookies[cookieName];
if (authCookie != null)
{
System.Web.HttpContext.Current.Response.Cookies[cookieName].Domain = Utilities.ResponseManager.CookieDomain;
}
它在我的本地機器上正常工作,但是當我在我的服務器上部署時,它不起作用。
它是任何iss設置或其他東西.. 我需要爲此做。
下面是web.config中的代碼
有
和本地計算機IIS 6.0和服務器具有IIS 7.0
請幫我在這個問題上
請同時發佈web.config的相關部分,並嘗試描述IIS的當前配置(以及哪個版本的IIS?) – rohancragg 2010-02-12 13:20:22