fix cookies
fix cookies with redirects