You are required to have solo cross country exercises endorsed in your logbook for those 5 hours. At each landing during the cross country you get a certificate signed and that certificate proves that the solo cross country was completed.
Swanning around more than 3 miles away from the airfield does not count I am afraid.