Deprecate cookie expiration config without params

Moving forwards, the lambda used to set the cookie expiration should
take a single parameter that will be populated with all available
cookies that have been set.