I have a header, within the header at the right i have a login_group (hidden), and a logout_group (shown)
When the user logs in, i hide the logout_group and show the login_group, this works fine.
When the user logs out (i.e. i have him click a button which says logout), i do the following
- Log out the user
- Hide the login_group
- Show the login_group
But this logout process does not seem to work, it doesn’t hide the login_group nor does it show the logout_group
So it’s just not working, and i’m unsure how to make it work?
All i want to do is, log out the user and show the login functionality.
How can i make this work?