fixes for azure cookie encryption