Glaser was born in Gorizia, Italy. His father, Vladimir Glaser, was a prominent Slovene lawyer and minority rights activist. His mother, Ana née Besednjak, was the sister of the politician Engelbert Besednjak. His paternal aunt Eleonora (Lola) was married to the famous neurologist Constantin von Economo.