Profile.GetProfile(~

just write on Global.asax

Reference : System.Web.Profile

 

void Profile_MigrateAnonymous(object sender, ProfileMigrateEventArgs e)
    {
        //이전의 익명 유저의 프로필에 대한 참조를 얻는다.
        ProfileCommon anonProfile = this.Profile.GetProfile(e.AnonymousID);
        //설정되어 있으면 테마를 현 유정의 프로필에 복사한다.
        if (!string.IsNullOrEmpty(anonProfile.Preferences.Theme))
        {
            this.Profile.Preferences.Theme = anonProfile.Preferences.Theme;
        }
        //익명 프로파일을 삭제한다.
        ProfileManager.DeleteProfile(e.AnonymousID);
        AnonymousIdentificationModule.ClearAnonymousIdentifier();
    }

 

한참을 찾아헤맨 끝에 해결한 문제다...ㅜㅜ

댓글

가장 많이 본 글