Professional auto glass technicians use specialized adhesives explicitly designed for auto glass to glue windshields.
Specialized windshield repair kits typically use a resin that is designed specifically for bonding with windshield glass, and is considered the best option for repairing a windshield.