Clearing cookies and cache from in app browser

2 posts, 0 answers
  1. Richard
    Richard avatar
    8 posts
    Member since:
    Aug 2007

    Posted 04 Feb 2014 Link to this post

    We are using the in app browser (through to great effect, but it seems that (on iOS at least) the browser cookies are saved between app sessions. I can see how that might be useful in many scenarios, but in ours it presents a security hole as a different user may be picking up cookies from the previous user. Does anyone know of a way to clear the in app browser cache and cookies?
  2. Steve
    Steve avatar
    10941 posts

    Posted 05 Feb 2014 Link to this post

    Hi Richard,

    You can clear InAppBrowser cookies using the "clearsessioncache" attribute:"", "_blank", "location=no,clearsessioncache=yes"); 

    which however appears to be available on Android. You can clear the session cookie via javascript directly or indirectly (via js framework like this one). Or you can utilize a custom Cordova plugin for the purpose, take a look at this one.

    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
Back to Top