Using a serrated knife, cut through the bread roll loaf horizontally. Spread pesto on one side and mayonnaise on the other.
Combine the cheese and sprinkle half on the bottom. Top with ham and sundried tomatoes, followed by the remaining cheese. Sandwich with the bread roll tops. Carefully transfer rolls to a baking dish that fits the rolls side-by-side snuggly.
Brush with olive oil and sprinkle over sesame seeds, if using. Cover with foil and bake for 15 minutes. Remove foil and cook for a further 5-10 minutes.