/// <summary> /// Sets the forms authentication cookie to this user. /// </summary> public void SetAuthentication(Page Page) { UserIdentityManager.SetAuthentication(this, Page); }
/// <summary>Constructor for userinfo from the web page, using the page's IPrinciple.</summary> /// <param name="Page">The Web Page</param> /// <remarks> /// Note that this constructor replaces an older one passing the page's user object. This allows /// for further access to the page's other properties, since the principle may not contain all the /// required data. /// </remarks> public UserInfo(System.Web.UI.Page Page) : base() { UserId = Page.User.Identity.Name; UserIdentityManager.FromPage(this, Page); }