User can set cookie expiration time and cookie secret