Add index to the session directory.