Move cookie set to own file