YAFLogo

piero_goku
  • piero_goku
  • 50.2% (Neutral)
  • YAF Camper Topic Starter
12 years ago
Hi friends...i have integrated my site membership with yetanother forum.

I want to know i can display the name of the current user in the master page and how can i loogout the user.

For logout i have done this code:

FormsAuthentication.SignOut();

this.Session.Clear();

this.Session.Abandon();

It's ok?

And for the name what i must use? Label? Static string?

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
12 years ago
If you are using standard asp.net membership you can use the asp.net controls for that..

user name :

<asp:LoginName ID="HeadLoginName" runat="server" />
and logout button

<asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/>

piero_goku
  • piero_goku
  • 50.2% (Neutral)
  • YAF Camper Topic Starter
12 years ago
I'm using the yetanotherforum membership...
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
12 years ago

I'm using the yetanotherforum membership...

Originally Posted by: piero_goku 

Yaf uses the Standard asp.net membership . So you can use the Standard asp.net controls.

piero_goku
  • piero_goku
  • 50.2% (Neutral)
  • YAF Camper Topic Starter
12 years ago
Ok...thanks a lot. :-d