Added support for configuring the time until the persistence cookie expires.