Set and get cookies without refreshing page.