Zen Follower
- Join Date:
- Jan 2007
- Posts:
- 166
- Plugin Contributions:
- 0
Determine if user is logged in
How do I determine if a user session is currently logged in or not?
I'm want to write something like ...
if ( user is logged in ) {
// display log out link
} else {
// display log in link
}
I know how to display the log in link, but do not know how to write the condition in the if statement. Also I have not figured out what is the logout link yet.
Thanks in advanced.