You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michael Gatto (JIRA)" <ji...@apache.org> on 2019/08/15 17:02:00 UTC

[jira] [Commented] (CB-11297) WKWebView clear all cookies

    [ https://issues.apache.org/jira/browse/CB-11297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16908301#comment-16908301 ] 

Michael Gatto commented on CB-11297:
------------------------------------

I wrote a plugin to address this: [https://www.npmjs.com/package/cordova-plugin-wkwebview-clearcache]

 

> WKWebView clear all cookies
> ---------------------------
>
>                 Key: CB-11297
>                 URL: https://issues.apache.org/jira/browse/CB-11297
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-wkwebview-engine
>    Affects Versions: 1.0.0
>         Environment: Cordova iOS 9
>            Reporter: Jim Trainor
>            Priority: Major
>              Labels: wkwebview-baked-in
>
> The WKWebView needs some means to clear all cookies and the session cache.
> I am using WKWebView combined with the Google Identity Toolkit to perform user authentication. I user cannot completely sign out if there is no means to clear all cached cookies.  I can remove the authentication token that is used by my application to access my site. However when the user signs back in, via the google identity toolkit, they do not need to enter a password.  This is the behaviour one expects if running in a standard desktop browser where the login is shared by several web sites.  It is not the behaviour one expects in application.  The way to totally and completely logout in a desktop scenario is to manually clear the browser cache. The way to accomplish the same in the an application is for the application to clear the cache - or at least the cached cookies.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org