Last post May 09, 2011 06:52 AM by Mamba Dai - MSFT
May 03, 2011 08:27 AM|Bekar|LINK
I am developing an online order system and using membership provider.
But the requirement is users can add item in the shopping cart without loging in. And at the time of payment, they will log in and pay.
So I have to somehow identify the user and save shopping items against the user in an temporary table and finnaly when they login and pay, have to insert the data into Order table and flash the temporary table.
But how can I identify the user??
I tried using SessionID. but with the click of every item, I get a new SessionID.
Can anyone help me with some good idea??please...
May 03, 2011 09:35 AM|chandu123|LINK
You can allow for anonymous browse through your website and you can give a chance to select the items and adding to shopping cart, at the make payment option you have to check whether the user is registered or not.If not you have to redirect the user to
register user page.If he is already registered you can redirect him to make payment page.
Check these links
May 03, 2011 10:36 AM|wolfxyzme|LINK
SessionID's are not generally a good idea unless you understand entirely how they operate.
One way to identify a returning user is by using a combination of cookies and IP address information which you have previously stored.
Your cookie information should hold PC and system information and once you can match this with the users IP address, you can assume this is the same returning user. However you should enforce a login to protect other sensitive data.
Hope this helps?
May 03, 2011 11:03 AM|frez|LINK
You could use anonymousIdentification, and either store the data in the profile or if you think that will be large, use the guid returned from profile.username to store the data in a table. Some good information can be found here
May 04, 2011 12:34 PM|Shellymn|LINK
You can try IP based tracking ... this can be implemented trhough flash cookie
May 04, 2011 04:10 PM|Bekar|LINK
, use the guid returned from profile.username to store the data in a table
I think I am going to use Profile as I can see it matchs my requirement.
But I need to migrate the profile when user log in. I am using Web Application Project and I dont find any profile/Profile common intellisense in the Global.asax.
Can you help me in this regard.
May 05, 2011 01:21 AM|frez|LINK
Please see this link for information on how to implement it http://msdn.microsoft.com/en-us/library/system.web.profile.profilemodule.migrateanonymous%28v=vs.85%29.aspx
May 09, 2011 06:52 AM|Mamba Dai - MSFT|LINK
To use anonymous profile can help you to solve this issue. It allows anonymous user to use shopping cart, the anonymousIdentification element in web.config can identify anonymous user. Like the following code snippet:
<anonymousIdentification enabled=”true” />
More information about anonymousIdentification element please refer to this link:
The sample about anonymous profile may be useful to you.