use cookie_period setting