I am using formsauthentication in my application but it is not working
<p>Below is my code for forms authentication in asp.net but some time it is not working means some time user is not logged in</p>

<p>FormsAuthentication.SetAuthCookie(authentificationString, rememberLogin);</p>

<pre><code>        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;
        }
</code></pre>

<p>It is working fine in my local machine but when I deploy on my server then it is not working.</p>

<p>is it any iss setting or something else..
what I need to do for this.</p>

<p>below is web.config code</p>

<p>
       
</p>

<p>and local machine having IIS 6.0 and Server having IIS 7.0</p>

<p>Please help me out on this problem</p>
