What does the idiom you have a splitting headache mean?

A very severe headache, as if an imaginary axe is "splitting your head in two".