'97 Oldsmobile 88 -- unusual starting problem

This only happens periodically. The car will start and then it dies right away, and the security light comes on. Then we can’t get the car to restart – for awhile. I couldn’t get it to restart immediately, but then it finally did restart after not trying for about 20 minutes.



The last time this was happening, my brother noticed it was quite humid in the car. There had been several rainy days for awhile, and the car had not been driven for awhile, the windows were closed up. After the car aired out for a couple of days, my brother was able to start the car without a problem.



Mostly this car is a second car for me to drive (1-2 times/year) when I visit Chicago (from CA) . I wonder if we should just sell it, and quit paying for repairs – hmm.



How much will such a repair cost? This is a second car which I only drive when I visit Chicago, Il (from CA), and my brother drives periodically to keep it running for when I come in to visit.