# Records

After you opened a [session](https://emotiv.gitbook.io/cortex-api/session) with a headset, you can create a record. A record is a permanent object to store data from an EMOTIV headset. You can associate a [subject](https://emotiv.gitbook.io/cortex-api/subjects) to a record. You can add one or more [markers](https://emotiv.gitbook.io/cortex-api/markers) to a record.

Unlike a [session](https://emotiv.gitbook.io/cortex-api/session), a record is a permanent object. It is stored on the hard drive and then can be synchronized to the EMOTIV cloud. The [opt-out](https://emotiv.gitbook.io/cortex-api/records/configoptout) configuration can let you decide if the records of a user are uploaded to the cloud or not.

## Record lifetime

First, you must [open a session](https://emotiv.gitbook.io/cortex-api/session/createsession) with a headset. Then you call [createRecord](https://emotiv.gitbook.io/cortex-api/records/createrecord) to start a new record. When the record is in progress, you can add [markers](https://emotiv.gitbook.io/cortex-api/markers) to this record. You stop a record with [updateRecord](https://emotiv.gitbook.io/cortex-api/records/updaterecord).

The record is linked to the session, so if you close the session, or if your application is disconnected from the Cortex service, then Cortex will automatically close the record.

After you stop the record you can export its data to a CSV or EDF file using [exportRecord](https://emotiv.gitbook.io/cortex-api/records/exportrecord).
