Multiple cookies with the same names are lost on redirect, close #1749