when the user logs in a membership object is created which contains the user
information. So, for instance, you can get the user email id using
Membership.GetUser(Context.User.Identity.Name.ToSt ring).Email
And yes, you can customize the membership services, using membership
provider class. for example, if you want to and a column to the user role,
say, changepasswordonlogin, then you would something like below
<profile enabled="true" defaultProvider="CustomProfileProvider">
<properties>
<add name="changepasswordonlogin" type="boolean"/>
</properties>
<providers>
<add name="CustomProfileProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="ConnectionString"/>
</providers>
</profile>
hope this helps.
--
---------------------------
Thanks,
Ibrahim
Software Consultant - Web Development, GB
"Tarun Mistry" wrote:
Hi all, I am using the ASP.NET 2.0 security model to impliment user access
control on my site. I have a few questions hopefully someone can answer:
1) From the encrypted ticket stored in the cookie (available in
User.Identity) how can I access the users userId value?
2) If a user is logged in, is the corresponding information in the
aspnet_user and membership tables loaded somewhere that can be accessed?
3) Can the aspnet_user and membership tables be extended to hold some site
specific information?
Thanks for any and all help,
Taz