fixing cookies issues sending them after redirect and for all requests