# SessionKey

data class SessionKey(val appName: String, val userId: String, val id: String?)

Composite identifier for a Session.

## Constructors

SessionKey
Link copied to clipboard
constructor(appName: String, userId: String, id: String?)

## Properties

appName
Link copied to clipboard
val appName: String

Name of the application that owns the session.

id
Link copied to clipboard
val id: String?

Unique session identifier within the `(appName, userId)` namespace. May be `null` when passed to SessionService.createSession to request that the service generate one. Methods that address an existing session (SessionService.getSession, SessionService.deleteSession, SessionService.listEvents) require a non-null id.

userId
Link copied to clipboard
val userId: String

Identifier of the end user the session belongs to.