Hot flahes at night.

my period is due today and ive been sweating and having hot flashes. Even when i sleep at night i wake up sweating. Whats going on?