Is there any way to clear cookie data after finish network.request on IOS device?

As we known, android would not save the cookie data in the client when use network.request. But IOS does.

That may cause problems when switch the account in the same device.

Any ideas?

Thank you.

Cookies are set and retrieved based on session ids in headers (generally). When you want to clear your session (and the associated cookies) you’ll have to identify how the webserver knows who you are and clear that data from the headers when you make the next request.

Cookies are set and retrieved based on session ids in headers (generally). When you want to clear your session (and the associated cookies) you’ll have to identify how the webserver knows who you are and clear that data from the headers when you make the next request.