user->isLoggedIn (method)

Purpose:

Checks if a user is logged in

Example:

if(isset($user) && $user->isLoggedIn()){//do something }

Data Type(s):

user->isLoggedIn()

Location:

users/classes/User.php

Details:

This method is generally used with isset($user) to avoid throwing errors.
The typical usage is

<?php if(isset($user) && $user->isLoggedIn()){//do something } ?>