CloneSession

KCM Core clones a new session which contains the state of the session associated with the job and a copy of all files stored in the folder_sessiondir and its subfolders. For more information on sessions, see KCM Core sessions.

The command CloneSession fails if the active job is not associated with a session.

Syntax

 CloneSession;

Parameters

The command CloneSession has no parameters.

The command CloneSession saves the session parameters and copies all files and folders from the folder _sessiondir. If applications running in the background have a lock on one of the files in the folder _sessiondir, the command may fail.

If the command CloneSession completes successfully, the variable _new_session contains the session identifier of the newly created session.