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 11542 time(s), 5 post(s) 12.08.2013 20:50:12by darryljneil
darryljneil

darryljneil

12.08.2013 20:50:12
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.
Dieser Inhalt wurde noch nicht bewertet. 
207 Reputation 23 Total posts
imarusic

imarusic

12.08.2013 21:32:30
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
Dieser Inhalt wurde noch nicht bewertet. 
3016 Reputation 428 Total posts
darryljneil

darryljneil

12.08.2013 22:03:23
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()
        {

        }
}
Dieser Inhalt wurde noch nicht bewertet. 
207 Reputation 23 Total posts
imarusic

imarusic

13.08.2013 07:45:54
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.
Dieser Inhalt wurde noch nicht bewertet. 
3016 Reputation 428 Total posts
darryljneil

darryljneil

16.09.2013 15:29:40
I'll be revisiting this topic in the coming days/weeks and get you a better response sir.
Dieser Inhalt wurde noch nicht bewertet. 
207 Reputation 23 Total posts