Check if a session is enabled. You can also check this only by the permissionId using isPermissionEnabled
.
AccountInstance
The instance of the account used for testing.
Session
The session to check if it is enabled.
bool
Returns true
if the session is enabled and false
otherwise.