duration

var duration: TemporalAmount?

Deprecated: Use maxAge or maxAgeInSeconds instead.

Cookie time to live duration or null for session cookies. Session cookies are client-driven. For example, a web browser usually removes session cookies at browser or window close unless the session is restored.