MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Logout of MonoX  (Mono Support )

Viewed 10213 time(s), 5 post(s) 8/12/2013 8:50:12 PMby darryljneil
darryljneil

darryljneil

8/12/2013 8:50:12 PM
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.
This content has not been rated yet. 
207 Reputation 23 Total posts
imarusic

imarusic

8/12/2013 9:32:30 PM
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
This content has not been rated yet. 
3016 Reputation 428 Total posts
darryljneil

darryljneil

8/12/2013 10:03:23 PM
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()
        {

        }
}
This content has not been rated yet. 
207 Reputation 23 Total posts
imarusic

imarusic

8/13/2013 7:45:54 AM
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.
This content has not been rated yet. 
3016 Reputation 428 Total posts
darryljneil

darryljneil

9/16/2013 3:29:40 PM
I'll be revisiting this topic in the coming days/weeks and get you a better response sir.
This content has not been rated yet. 
207 Reputation 23 Total posts