user->exists (method)

Purpose:

Checks if a user is logged in and the user class is instantiated

See Also:

user->isLoggedIn (method)

Example:

if($user->exists()){//do something }

Data Type(s):

user->exists()

Location:

users/classes/User.php

Details:

This method is not used in UserSpice and the isLoggedIn method is preferable.
However, if a user is logged in and the user class is instantiated

<?php $check $user->exists(); ?>
would return true. Otherwise, it would return false.