Dear Support,
For some reasons Fiddler stopped tracing my application.
I believe the issue is to do with the pro version server failed to read the authentication ticket in cookies because I choose anonymous authentication.Please review the following debug process:
I did attach the process and stepped through the debugger. I find the following line in the login.aspx that does not work:
Response.Redirect(url, false); I check the url value is correct:"/wwwroot_sql2005/admin/default.aspx."
After executing the above line, it remains at Login.aspx. I speculate that the reason that it did not redirect because somehow the successful login status is not registered. The following function set the authentication ticket in cookie:
protected void SetAuthenticationTicket(string userName, string userData)
{
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
1,
txtEmail.Text,
DateTime.Now,
DateTime.Now.AddYears(1),
chkPersistent.Checked,
userData);
string encryptedTicket = FormsAuthentication.Encrypt(ticket);
HttpCookie authenticationCookie = new HttpCookie(FormsAuthentication.FormsCookieName,encryptedTicket);
//authenticationCookie.Domain = "infomato.net";
if(chkPersistent.Checked)
authenticationCookie.Expires = ticket.Expiration;
Response.Cookies.Add(authenticationCookie);
if(Response.Cookies[authenticationCookie.Name]==null)
lblLoginMessage.Text = "Enable \'Session cookies\'";
else
lblLoginMessage.Text = "";
}
Thanks,
Wayne