Copied to clipboard

Flag this post as spam?

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


  • Scott Hugh Alexandar Petersen 349 posts 164 karma points
    Jun 15, 2012 @ 15:55
    Scott Hugh Alexandar Petersen
    0

    members/templates are cached until a template has been updated from backend

     

     

    Umbraco Version: 4.7.2
    .Net Version: 4.0
    Windows Version: 2008
    IIS Version: 7.5

    For some reason after I have changed a username from code like this:

    public static MembershipUser member = Membership.GetUser();
    umbraco.cms.businesslogic.member.Member membera = new umbraco.cms.businesslogic.member.Member((int)member.ProviderUserKey);
    membera.LoginName = UserName.Text;
    membera.Email = UserName.Text;

    And then I clear the cache and logs out the user like this

    umbraco.cms.businesslogic.member.Member.ClearMemberFromClient(membera.Id);
    FormsAuthentication.SignOut();
    HttpContext.Current.Session.Abandon();
    umbraco.cms.businesslogic.cache.Cache.ClearAllCache();

    But for some reason the old username/email appears, when I log back on with the new username on several pages with getting the data like this:

    public static MembershipUser member = Membership.GetUser();
    UserName.Text = member.Email;
    Email.Text = member.Email;

     

     

  • Scott Hugh Alexandar Petersen 349 posts 164 karma points
    Jun 18, 2012 @ 13:35
    Scott Hugh Alexandar Petersen
    0

    Anyone?

Please Sign in or register to post replies

Write your reply to:

Draft