Added support for cookie redirects.