MDL-28630 prevent session breakage caused by incorrect cookie settings