{{tag>Function Function_List Miscellaneous Version:v4.8}} ====== NMB_OF_SESSIONS ====== ===== Description ===== Returns the number of time a particular user is logged in the system, 0 is returned if the user is not logged in ===== Syntax ===== ''NMB_OF_SESSIONS (user)'' Cannot be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== An instance of an object that belongs to the SystemUser group ===== Returns ===== **Number**: how many times the user is logged in, or 0 if not logged in. ===== Example ===== IF NMB_OF_SESSIONS(RegularUser) > 1 THEN REPORT ERROR 'User can only be logged in once' ===== Related ===== [[ref:a_f:f:af:nmb_of_users|NMB_OF_USERS]]