Hi,
I am facing a problem in AnonymousIdentification. I have a shopping cart running. When ever a user come to my site it will have an AnonymousID. But when he moves to another page he is getting a new AnonymousID. Due to which when he puts some thing in his basket and go to the cart page then it empties the basket. Some how is doesnt remember the AnonymousID or they mixed up somehow.
Do anyone have solution for that.
in my web.config i am using <anonymousIdentification enabled="true" />
and in my global.asax i am using
public void Profile_OnMigrateAnonymous(object sender, ProfileMigrateEventArgs args)
{
ProfileCommon anonymousProfile = Profile.GetProfile(args.AnonymousID);
Profile.ShoppingCart = anonymousProfile.ShoppingCart;
ProfileManager.DeleteProfile(args.AnonymousID);
AnonymousIdentificationModule.ClearAnonymousIdentifier();
Membership.DeleteUser(args.AnonymousID, true);
}