Handle cookies and cancel original redirect on redirects