sessions.terminated
Published to Kafka when a session is terminated (either by the user, TTL expiry, or system cleanup).
Message Schema
{
"key": "ses_k8m2n4p6",
"headers": {
"event-type": "sessions.terminated",
"content-type": "application/json"
},
"value": {
"session_id": "ses_k8m2n4p6",
"org_id": "org_x1y2z3",
"reason": "ttl_expired",
"duration_seconds": 1800,
"pages_visited": 23,
"terminated_at": "2026-06-23T15:30:00Z"
}
}