•  gdngladi
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter

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?


About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved