简体   繁体   中英

Cannot login after I publish my asp.net web application in IIS7

I published it succesfully in IIS. The problem is that this application run , but when I try to login , it remain in the same page , so I cant log in ,cant go inside my application. It seems like the server redirect the browser in the same content page.

What logic you have implemented in the Login Button.. ?

Are you redirecting the same page after login ?

Ensure you are not redirecting the non authenticated user in the login page PageLoad Method..

 protected void LogIn(object o, EventArgs e)
 {
   if(validateCredentials())
   {
        Response.Redirect("Menu.aspx",false);
   }
 }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM