How to delete cookies in Webview to kill session and logout user?

Hi all,

I would like to delete cookies from a Webview to kill the session and enable a user logout, but can’t get this done with iOS.

On Android this code works, it does not work on iOS, it throws an error in Expo Snack Web. All using v42.0.0 and Expo Snack.

import RCTNetworking from 'react-native/Libraries/Network/RCTNetworking';

RCTNetworking.clearCookies(() => {});

Is there a way to enable a logout in iOS by deleting cookies from Webview?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.