made expiration time of cookies configurable, close #208