Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Login form not working when deployed
Message
De
30/01/2009 13:32:34
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
30/01/2009 13:23:43
Tegron Tegron
Platinum Technologies
Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows Server 2003
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01378518
Message ID:
01378520
Vues:
28
Hi Tegron,

>I am using the Mere Mortals security in my web app. If functions fine when I run it in my dev environment. I recently just noticed a problem. When I click my link to take me to the login page again and sign in again, it displays a message telling me "You have logged in". Nothing else happens after that.
>
>When I deploy the app, this message page is always displayed. I have tried turning off the displayconfirmation page, but that still doesn't work. I walked through the code and the this.Login() is running the messagedisplay method and just stopping there. Does any know how to stop this or to ovverride this behavior?

Are you just navigating directly to your login page? Here is how I use this:

I have a page called MembersOnly.aspx. I have overriden the OnInit method of the page to require security as per the Dev Guide topic
Application Security / Securing Web Forms
protected override void OnInit(EventArgs e)
{
     this.RequiresSecurity = true;
     base.OnInit(e);
}
What happens is when a user tries to navigate to a protected page if they are not logged in they are re-directed to the login page. After login they are then re-directed to the originally requested page. If you are trying to direct them to the login page, there isn't anywhere to go after that.
Just protect all your pages that requre login and create links only to them. The re-direct to login first will be automatic. It is really cool!
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform