MY CAR WILL START UP THEN WONT STAY ON FOR MORE THEN 2 MINUTES? on 1998 Infiniti Q45

I CAN START MY CAR RIGHT UP BUT WONT STAY ON AT ALL THEN IT LET ME DRIVE FOR BOUT 5 MILES THEN SHUTS FOR WHILE IM DRIVING THEN WONT START BACK UP?

1 answer
is your ck eng light on? if so have codes scanned and post so we can adv.