Apache
  •  Apache
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2010-01-19T12:12:17Z
Am trying to connect the forum with my website and in the process need to create a user session in the forum without the user having to login.
When the user registers on my site I simultanously create the necessary enteries in the 4 tables of the forum but can anyone guide me how I can create a session in the forum so that the user doesnt have to login to the forum explicitly.

MembershipUser user = Membership.GetUser("testuser");
if (user != null && HttpContext.Current.Session["UserUpdated"] == null)
{
//HOW DO I CREATE THE USER SESSION HERE
HttpContext.Current.Session["UserUpdated"] = true;
}

All help is highly appreciated.
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