isUserLoggedIn (function)

Last updated: Mon, Apr 17, 2023 11:07 am
Return to Knowledgebase


Used to check whether the user is currently logged in or not.




This function does not take any arguments


Data Type Description of Returned Data
bool Returns a boolean value, true if the user is logged in and false otherwise.

Further Documentation:

Here is an example of how to use this function:

if(isUserLoggedIn()) {
// code to execute if user is logged in
} else {
// code to execute if user is not logged in

In the example above, if isUserLoggedIn() returns true, then the code within the first block will be executed, and if it returns false, the code within the second block will be executed.