Check engine light is on but when I had it checked it was for something that was totally different, it had to do with emissions.
That is not the problem I was told by many mechanic that it would not cause this. The car runs great other than that it dies and sometimes won't start after it is shut down and I wait a few minuets and it starts. I know a bit about cars and I don't know if the crank sensor would cause that but I think it is something like that.
I don't think that it ever did it cold. It started with I would shut it off and sometimes it wouldn't start and I would wait 1-15 minutes and it would start. Then it started doing it more often and it started happening when I was driving most of the time it starts right up after it died but now it seems to be doing it more often and sometimes it still starts right up and other times I need to wait. This started a few years ago and it seems to go in spurts it will run fine for a month or more and then it will start doing it again. I don't know what the fuel pressure is and I have not changed the filter. The security light never came on and the key looks normal so it must be a pass-lock. I don't know of any codes other than the 02 sensor I had the display tell me to check the gas cap once and it never happened again. I live in Minnesota and it happens in the summer and not often in the winter I don't recall it ever happening in the winter if it did it was once or twice. I am asking these questions to stop from replacing things that don't need to be replaced so if you don't know what it is for sure please say so.
With an intermittent problem such as this, you can only take an educated guess as to what may be causing this. It's very possible this is an electrical problem, bad ground or loose connection. My guess would be ignition switch since it gets a lot of use. To know for sure, it would have to be tested when the problem occurs.
Here is a link to recalls and service bulletins on your vehicle. My advise to you is first make sure all these bulletins have been done to your car. The dealer can check to verify what has and what has not been done. Any item with a service bulletin on it will be done at no charge to you by the dealership. I was surprised to find 149 service bulletins on your car, many which are electrical problems.
Recalls and Bulletins for 2001 Olds Aurora