Skip to main content

getCookieExpireTime

getCookieExpireTime(ttl: number): string

convert a TTL (time to live) to an expire date

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
ttlnumber: time to live in seconds