Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
75950 Points
5608 Posts
Jan 13, 2012 06:25 AM|LINK
Hi,
SecurityTokenForFormsAuthentication function obtains a security token for a user authenticating through forms-based authentication.
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecuritycontext.securitytokenforformsauthentication.aspx
Then get the MembershipUserCollection and foreach it.
MembershipUserCollection users=Membership.GetAllUsers();
MembershipUser objUser;
foreach (objUser in objUserCollection) {
LastLoginDateLabel.Text = u.LastLoginDate.ToString();
}
Hua-Jun Li -...
All-Star
75950 Points
5608 Posts
Re: creating security token updates all user in membership table?
Jan 13, 2012 06:25 AM|LINK
Hi,
SecurityTokenForFormsAuthentication function obtains a security token for a user authenticating through forms-based authentication.
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecuritycontext.securitytokenforformsauthentication.aspx
Then get the MembershipUserCollection and foreach it.
MembershipUserCollection users=Membership.GetAllUsers();
MembershipUser objUser;
foreach (objUser in objUserCollection)
{
LastLoginDateLabel.Text = u.LastLoginDate.ToString();
}
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework