I have been using The Beer House web example to develope a project and i wan to add photo gallery inside but i m stuck when i can't get the user login identification from the web login which uses the cookies as the user authentication. I want to personalize
the photo gallery to each user having their own photo retrieve from database by comparing their user Id.
The code is in the tbh web example. Now can anyone tell me how to change the login from using username to using email to login into website. I want to use email to replace username to login into the page. For the registration, why the details that the users
register are not store in the database. Where can i retrieve all the information of the user to be view.
Unfortunately, I think you'd have to come up with a custom membership provider for that. The problem is that, under the default membership provider, the username is basically meant to be permanent. If you replace the username with the email address, then
you have to allow it to be changeable, because people change their email addresses all the time. There is info on MSDN on creating a custom membership provider.
As for the second part, I don't know what you mean. The user registration details are stored in the database. In order to retrieve/view them, you use the methods of the Membership and MembershipUser classes.
csding
0 Points
2 Posts
Problem with the cookies..
Jan 28, 2008 02:18 AM|LINK
I have been using The Beer House web example to develope a project and i wan to add photo gallery inside but i m stuck when i can't get the user login identification from the web login which uses the cookies as the user authentication. I want to personalize the photo gallery to each user having their own photo retrieve from database by comparing their user Id.
cdpandya1
Member
344 Points
67 Posts
Re: Problem with the cookies..
Jan 28, 2008 01:20 PM|LINK
Can u paste your code here so that it makes more sense..
Thanks
Please remember to 'Mark as Answer' if this post answered your question!
csding
0 Points
2 Posts
Re: Problem with the cookies..
Jan 29, 2008 05:52 AM|LINK
The code is in the tbh web example. Now can anyone tell me how to change the login from using username to using email to login into website. I want to use email to replace username to login into the page. For the registration, why the details that the users register are not store in the database. Where can i retrieve all the information of the user to be view.
Lee Dumond
Contributor
6404 Points
1173 Posts
Re: Problem with the cookies..
Jan 30, 2008 01:27 AM|LINK
Unfortunately, I think you'd have to come up with a custom membership provider for that. The problem is that, under the default membership provider, the username is basically meant to be permanent. If you replace the username with the email address, then you have to allow it to be changeable, because people change their email addresses all the time. There is info on MSDN on creating a custom membership provider.
As for the second part, I don't know what you mean. The user registration details are stored in the database. In order to retrieve/view them, you use the methods of the Membership and MembershipUser classes.
Follow Me on Twitter