Sounds like a concern where the key is not being recognized for some reason. Are there any aftermarket devices installed? Any new keys? Something is missing from this story.
RepairPal Certified shops can diagnose and repair your 2007 Nissan Altima. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.