1997 jeep cherokee

i drive the jeep for awhile and then when it is idleing it will stop running when i try to start it, it wont for about a half an hour. what could be the problem