473,657 Members | 2,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Synchronize anonymous users with authenticated users using profiles?

I am trying to Synchronize anonymous users with authenticated uses
using Profile_Migrate Anonymous. However Profile_Migrate Anonymous 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_Migrate Anonymous(objec t sender, ProfileMigrateE ventArgs e)

{

ProfileCommon anonymousProfil e = Profile.GetProf ile(e.Anonymous ID);

if (anonymousProfi le != null && anonymousProfil e.CurrentBasket Info !=
null)

{

Profile.Current BasketInfo = anonymousProfil e.CurrentBasket Info;

}

}

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

Nov 19 '05 #1
2 1589
WJ
See http://www.asp.net/Default.aspx?tabindex=8&tabid=47 under "Commerce
Kit". It has what you want.

John
Nov 19 '05 #2
Thanks John, I will take a look.

Rod

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
12088
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the combobox. What is the solution? Thank you in advance.
1
2170
by: Hewit | last post by:
DataTable Class documentation says. Thread Safety "This type is safe for multithreaded read operations. You must synchronize any write operations." In my web based application (ASP.Net) developed using Vb.Net on .Net Framework 1.1. can I write a function which will populate an object(derived from DataTable Class)? Since it is web based application and because of multiple user there is a possibality of hitting this function by multiple...
0
947
by: cmrchs | last post by:
Hi, Some illogical scenario... I set the IIS-authentication method for the site I try to access to 'Anonymous'. web.config-entries : <authentication mode="None" /> <identity impersonate="true" /> <authorization>
2
2898
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public users). If user is from intranet, web server should recognize it and application should create additional options in controls regarding groups the user belongs to. If user is from extranet it should be logged in as anonymous and a link to login page...
1
2455
by: Kjell Kristiansson | last post by:
In developing a solution I ran into a problem where I have found no acceptable solution. The problem is combining users with anonymous login and users logged in to a domain in the same .aspx application. Here is some background: - the application will be accessable from the Internet, extranet and intranet. - no logon required but then you get limited information/functionality - if you'r not logged on you will be provided an option to...
3
3128
by: Vincent Ye | last post by:
Hi All, I have an application which is using memship and profile functions. It works well in my develop machine which is using SQL Express Edition Server as the provider. When I move this application to the hosting server. It works well when the user is anonymous. But after user logins, the Profile_MigrateAnonymous event in Global.asax is called when user browses every pages. So even I change the value in Profile, it keeps getting...
2
1293
by: matthewdavis1980 | last post by:
Hi all, I have a scenario and maybe you guys can help me out. I'm working with asp.net 2.0 and have created a website under a website template. My ultimate goal is to have the website available under "anonymous access" to the public, but special features available under integrated windows authentication. In page load, I want to verify the the user is authenticated, and if so, show the special features. If not, keep them hidden. In...
1
1243
by: AAOMTim | last post by:
I have a web project in which I would like to structure my top level directory to provide a user with anonymous access and a subdirectory for secure access that uses forms-based authentication. I'm under the impression that I need 2 web.config files: one in my top level directory for anonymous access and one in my underlying secure directory for authenticated access. Can anyone point e to some specific examples of how to do this, what...
3
3207
by: shapper | last post by:
Hello, I am working with an ASP.NET MVC Web Application and I am using the following custom profile provider: http://weblogs.asp.net/jgalloway/archive/2008/01/19/writing-a-custom-asp-net-profile-class.aspx One of the properties is allowed to anonymous users. How can I get the profile of an anonymous user? They don't have a
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8606
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4159
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.