After getting a jump, you should leave your car running for at least 30 minutes. For more reliable results, drive it around instead of letting it idle. This should fully charge the battery so it won't die on you again.