I've had this a problem a lot with this vehicle. I have a 99 Jeep Wrangler TJ. I believe the car's computer has a battery that is a dead (like a watch battery). For some reason when it stalls or when it needs a jump it forgets how to keep itself running. I then have to manually control the amount of gas going to the car to keep it idling for sometimes 15 minutes. Then if I turn it off before I let it stall, I can start it back up and it'll work fine.
The process that best works is starting up with heavy gas, and slowly taking the gas idle. Then restarting the car and it holds out fine.
Is there a faster way to do this? What's happening? How do I fix it?