Configuring data retention
Control how long your self-hosted Cobrowse instance keeps session data by setting a retention period.
The data_retention:sessions config value sets how long, in seconds, your instance keeps session metadata. It is not set by default so a self-hosted instance keeps every session forever.
Setting data_retention:sessions
Firstly make sure you have configured at least one superuser in your instance.
Open
/admin/configurationon your instance while logged in as a superuser. e.g. https://example.com/admin/configurationEnter a new configuration key called "data_retention:sessions". The value should be the retention period in seconds.
Save and restart the API service for the new value to take effect. Existing sessions older than the retention period are deleted too.
Some common values:
30 days
2592000
90 days
7776000
1 year
31536000
Last updated