❌ Security Error: Session user_id is 0 or unassigned.