Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 28th, 2006, 06:43 AM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Profiles and Membership

Hello, I am very new to .NET and trying to learn as much as i can and begin buidling my applications. And have a few issues.......here is one...........

I am just getting a little confused with it all and my problem is as below.....

I have a create user page where by the user fills out their username, password, email, firstname and last name. The first 3 items get stored in the aspnet_members DB and i stored the last 2 in a profile i created, allowing anonymous.

Now i want to be able to get the user to sign up and then wait to be approved before being able to login to the site. I currently have in place the Profile_MigrateAnonymous sub routine so when the user is authenticated their anonymous profile is migrated over to their main account. I assume that the profile information is stored in a cookie of some sort?!

Now my issue i have understanding is if a user signs up and then a day later they delete all their cookies and then get approved to login to the site, then the anonymous userid they were assigned is no longer tied to their computer so therefore it wont migrate their profile and is not associtated to them. How do i get around this?

Any help much appreciated!

Ta

Ben

 
Old February 28th, 2006, 05:25 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I don't think you'll be able to do this.

The anonymous user tracking feature depends completely on a cookie (it might work with cookieless mode as well; not sure, but that would be make the problem even bigger).

So, as long as your user hasn't signed up for an account, the only way you know who this user is, is by his anonymous user ID. Once the cookie is deleted, there is no way to link up the orphaned profile with the user.

The profile information itself is not stored in a cookie, but in the aspnet_Profiles table in the database created for your application. The user's cookie is used to link that user to a specific record in that table.



HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Teen Age Riot by Sonic Youth (Track 1 from the album: Daydream Nation) What's This?
 
Old March 1st, 2006, 04:23 AM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Imar for your help and response!

My Next question is what woul be the best way then to store this extra information without the use of the profile? just store it into another DB table?

Ben





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get data from user profiles ssomchai BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 May 13th, 2008 01:33 AM
CreateUserWizard and Profiles Talarin ASP.NET 2.0 Professional 2 July 3rd, 2007 07:26 AM
Profiles and DALs plb BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 January 25th, 2007 01:07 PM
Member Profiles Ben Horne Forum and Wrox.com Feedback 4 March 3rd, 2004 02:11 PM
Forum profiles nebbish Forum and Wrox.com Feedback 1 June 3rd, 2003 05:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.