Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Login form not working when deployed
Message
From
30/01/2009 13:32:34
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
30/01/2009 13:23:43
Tegron Tegron
Platinum Technologies
Ohio, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows Server 2003
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01378518
Message ID:
01378520
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform