monster.util.isLoggedIn()

Syntax

monster.util.isLoggedIn();

Return value

A Boolean indicating whether or not the current user is logged.

Description

This method checks if a user is currently logged in and returns a boolean as a result.

Example

if(monster.util.isLoggedIn()) {
	// do something if user is logged in
};

On this page