Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aximili 177 posts 278 karma points
    Oct 25, 2011 @ 07:41
    Aximili
    0

    When will a member be logged out?

    I am using Umbraco 4.7.0 and .NET Login control.

    When will a member be logged out:

    • If I don't check "Remember me"
    • If I check "Remember me"

    I think Umbraco 4.7.0 has a bug that causes members not to be logged out, is that right?

    How do we force the site to logout members after certain period unless they tick "Remember me"?

    Thank you in advance.

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 25, 2011 @ 07:46
    Fuji Kusaka
    0

    Hi Hardi,

    This is a known bug in version 4.7.0. when logging out it doesn't completely log the user out. Check this bug , its fixed in v 4.7.1.

    //fuji

  • Aximili 177 posts 278 karma points
    Oct 26, 2011 @ 00:43
    Aximili
    0

    Thank you Fuji.

    But I am working with a live website. I don't think I can just update its Umbraco? It's been heavily customised.

    Is there a workaround for 4.7.0? Or a patch?

    I currently have this, so it's fine if they logout manually

      protected void UmbracoLogout(object sender, EventArgs e)
      {
        try { Member.RemoveMemberFromCache(Member.CurrentMemberId()); } catch { }
        try { Member.ClearMemberFromClient(Member.CurrentMemberId()); } catch { }
      }

    But I still have problem with members not automatically logged out after days, even when they don't tick "Remember me"

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 26, 2011 @ 06:28
    Fuji Kusaka
    0

    Hey Hardi,

    If you are already on  a live website  you can create a Logout button in a C# usercontrol to completely logout the user. or  have a look at uLogin, and add some code to completely logout user.

    I have been using the uLogin system to Logout my user completely. Have a look at this thread as well.

    //fuji

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies