You can start recording a session using the startRecording command.

sessionstack("startRecording");

This command receives a configuration object as a second optional argument.

sessionstack("startRecording", {
    sensitiveInputFields: true
});

The configuration object has the following properties:

Property NameTypeDescription
sensitiveInputFieldsBooleanAutomatically make all input fields sensitive

The command can also receive a callback function as an optional argument:

sessionstack("startRecording", function(sessionId) {
    // sessionId -> the ID of the current session.
});

or in combination with the configuration object:

sessionstack("startRecording", {
    sensitiveInputFields: true
}, function(sessionId) {
    // sessionId -> the ID of the current session.
});