gdngladi
  •  gdngladi
  • 50.2% (Neutral)
  • YAF Forumling Topic Starter
2013-06-04T09:26:22Z
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

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