- This topic has 1 reply, 2 voices, and was last updated 11 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › How can i show the name´s user when is log in and a link for close the sesion??
Tagged: close sesion, log in
How can i show the name´s user when is log in and a link for close the sesion in the header???? I khow for the name´s user this code:
$auth = BAuth::get_instance();
$user_name = $auth->is_logged_in()? $auth->get('user_name'): '';
and i would like to insert the tipical close sesion all together in the header.
I also before the user name´s user a word like “wellcome , MR XXXXXXX, close sesion”.
Please can you tell the code to write……thanks a lot
what do you mean by “close session”? did you mean “logout”?
for logout, use this:
$auth->logout();