Function : isGuest

The isGuest() function is dependent on session configuration. It returns true when a user is not logged in.

  if( isGuest() ) {

    //session not logged in

  }
                  
The entire response of this function is dependent on user session configuration. The init file and the database file dbconfig.php must be properly configured along with the Session configuration system for this function to work effectively.