piero_goku
2013-05-28T10:13:00Z
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
2013-05-28T12:12:51Z
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="~/"/>




UserPostedImage
piero_goku
2013-05-28T14:51:24Z
I'm using the yetanotherforum membership...
tha_watcha
2013-05-28T14:58:42Z
Originally Posted by: piero_goku 

I'm using the yetanotherforum membership...



Yaf uses the Standard asp.net membership . So you can use the Standard asp.net controls.
UserPostedImage
piero_goku
2013-05-28T15:03:22Z
Ok...thanks a lot. :-d

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