I think the advantages of using glue basting instead of basting spray are: (1) glue is cheaper, and (2) it is non-aerosol. Some people with breathing problems do not want to be exposed to chemical sprays.
Here's a recent tutorial explaining how the poster used glue to baste:
http://www.quiltingboard.com/tutoria...s-t208057.html