Mono Support Logout of MonoX 

Viewed 11059 time(s), 5 post(s), 8/12/2013 8:50:12 PM - by darryljneil
8/12/2013 8:50:12 PM
207 Reputation 23 Total posts

I am experiencing an issue where a user of MonoX is not logged out when clicking on the Logout button.

I extended the MembershipNavigation control that comes with MonoX for a few different reasons, but since doing that, the Logout functionality only works after clicking Logout button for the second time. I can supply code if needed. I've tried invoking FormsAuthentication.SignOut method, but that does not seem to fix the problem. Any help would be great.

1
8/12/2013 9:32:30 PM
3016 Reputation 428 Total posts

Hi,

please post it and we will check if we can help since it's a custom implementation and is working in original form.

Regards

2
8/12/2013 10:03:23 PM
207 Reputation 23 Total posts

IMARUSIC, here you go.


    public partial class RLLMembershipNavigation : MonoSoftware.MonoX.MasterPages.MembershipNavigation
    {            
        protected override void Render(HtmlTextWriter writer)
        {
            base.Render(writer);
        }

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.loginStatus2.LoggingOut += loginStatus2_LoggingOut;
            loginName.Visible = false; //Custom imp. of login name below
            lnkMessages.Visible = false; //Do not show messages button.
            rllLoginName.Visible = true;
        }

        void loginStatus2_LoggingOut(object sender, MonoSoftware.Core.CancelEventArgs<string> e)
        {
            //Null session at this point to ensure other project 
// specific web parts do not mistakenly access it.
if (Session["activeRlluser"] != null)
                Session["activeRlluser"] = null;       
        }

        public RLLMembershipNavigation()
        {

        }
}

3
8/13/2013 7:45:54 AM
3016 Reputation 428 Total posts

Hi,
did you try to debug it to see what happens? Put LoggingOut event attaching to Init method. I do not see anything weird
here.

Regards.

4
9/16/2013 3:29:40 PM
207 Reputation 23 Total posts

I'll be revisiting this topic in the coming days/weeks and get you a better response sir.

5
This is a demo site for MonoX. Please visit Mono Software for more info.