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 )

11545 put(a) pogledan, 5 odgovor(a) 12.8.2013. 20:50:12Kreirao(la) darryljneil
darryljneil

darryljneil

12.8.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.
Ovaj sadržaj još nije ocijenjen. 
207 Reputacija 23 Ukupno objava
imarusic

imarusic

12.8.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
Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava
darryljneil

darryljneil

12.8.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()
        {

        }
}
Ovaj sadržaj još nije ocijenjen. 
207 Reputacija 23 Ukupno objava
imarusic

imarusic

13.8.2013. 7: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.
Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava
darryljneil

darryljneil

16.9.2013. 15:29:40
I'll be revisiting this topic in the coming days/weeks and get you a better response sir.
Ovaj sadržaj još nije ocijenjen. 
207 Reputacija 23 Ukupno objava