I start up my vehicle and everything is well.

But at times when I turn my car off and walk to lock it, it doesn’t and when I open my door to turn the ignition nothing…

So I pop the hood open and slam my hood down really hard and somehow that gets everything running again. I like it from my key and no issue…

I brought a new battery and still have this issue, not sure what’s happening, is this an alternator problem ?

Doubt it though, went to the mechanic and all is well…

Has anyone experienced this ? Help!!