Use seconds to set session expiration. Refs #36
Serialize only well-known types, rename function to remark the usage. Refs #36