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