YAFLogo

gdngladi
  • gdngladi
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
Hi,

I need to add a new user to the database based on AD authentication. I am able to achieve that by calling the CurrentMembershipProvider.Instance.CreateUser() method in the page_Load event of yafHeader.ascx.cs.

But, since all this has to happen in the background before i proceed to the forum page, i need to set the newly created user as the active user (PageContext.pageUserID).

How do i do that? Is there any other way i can achieve the same thing?

Thanks

Sponsor