YAFLogo

chancetouchstone
16 years ago
Where does yaf check to see if your logged in already or not? I'm passing a few properties in session to see if the user has already logged into the website/forums. If the user has logged in to one I'm automatically logging them into the other as well. I have this working on my website but where should i place this check in the yaf code?
Sponsor
xuanvu
  • xuanvu
  • 78.8% (Friendly)
  • YAF Forumling
16 years ago
You can use YAFblend.dll, and in whatever page that you want to check if a user login, do this:

YAFuser UserInfo = new YAFuser("yourConnectionString", false, false);

bool LoggedIn = UserInfo.Authenticated;

if(LoggedIn == true)

{

// do your stuffs

}

else

//

Kenny.