PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.

How to Synchronize anonymous users with authenticated users using profiles?

 
 
Rodusa
Guest
Posts: n/a
 
      8th Sep 2005
I am trying to Synchronize anonymous users with authenticated uses
using Profile_MigrateAnonymous. However Profile_MigrateAnonymous only
carries information in one direction, for instance, if I delete one
item from the basket in a shopping cart when the user is still
anonymous, the item comes back right after I log out. I would like to
know if is there any way to synchronize both directions so that the
user sees the information in the basket either as being anonymous user
or authenticated user?

void Profile_MigrateAnonymous(object sender, ProfileMigrateEventArgs e)

{

ProfileCommon anonymousProfile = Profile.GetProfile(e.AnonymousID);

if (anonymousProfile != null && anonymousProfile.CurrentBasketInfo !=
null)

{

Profile.CurrentBasketInfo = anonymousProfile.CurrentBasketInfo;

}

}

PS: if I use ProfileManager.DeleteProfile(e.Anonymous) in my migrate
event, it will clear the anonymous basket. I could then try to set it
back to the authenticated profile when the user updates the
authenticated profile. However, if the user closes and opens the
browser without loging out, there is no way you can set the anonymous
profile= authenticated profile .

Rod

 
Reply With Quote
 
 
 
 
WJ
Guest
Posts: n/a
 
      8th Sep 2005
See http://www.asp.net/Default.aspx?tabindex=8&tabid=47 under "Commerce
Kit". It has what you want.

John


 
Reply With Quote
 
 
 
 
Rodusa
Guest
Posts: n/a
 
      8th Sep 2005
Thanks John, I will take a look.

Rod

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Perils and Merits of Anonymous classes? Anonymous Descendant class Siegfried Heintze Microsoft C# .NET 6 24th Feb 2008 04:50 AM
Trying to migrate an anonymous profile to an authenticated one GeoffreyD Microsoft ASP .NET 2 29th Jan 2008 11:39 AM
Anonymous Method vs. Anonymous Delegate Robert Howells Microsoft C# .NET 3 21st Oct 2007 08:08 AM
Anonymous and authenticated access with multilpe web.config files =?Utf-8?B?QUFPTVRpbQ==?= Microsoft ASP .NET 1 17th May 2006 10:46 PM
Authenticated VS Non-Authenticated Jake Microsoft Windows 2000 Advanced Server 0 10th Oct 2003 03:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:32 AM.