How to set cookie login for Webview?












0















In Activity A I have webview login, after login I save CookieManager.getInstance().getCookie(url); in shared preference and then next to Activity B. In activity I have webview, now I want set cookie save in shared preference to webview in activity B. How I can do it?
My string cookie sample:




nd=del; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
_im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
s_sq=%5B%5BB%5D%5D;
__bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
loading
https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
trd_cid=15457320755932775; _ga=GA1.2.992719753.1545732069;
_gid=GA1.2.1965405727.1546394143; _tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; _fbp=fb.1.1546411386099.1330627569; lni_session_id=kbjm3geqoaoa7qdavl3rn6f4a7; LNXUST=MY%3D1546423494;
s_combCk=1546423494-Repeat--undefined--undefined; s_cc=true;
mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425356;
check=true;
_mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=0; CORRECT=0




I used this code:



 String cookies = SharedPrefs.getInstance().get(SharedPrefsKey.KEY_COOKIE_WEB_VIEW, String.class);
String splitCookies = cookies.split(";");
CookieManager cookieManager = CookieManager.getInstance();
for (String cookie : splitCookies) {
cookieManager.setCookie(urlLoadWebView, cookie);
}
mWebView.loadUrl(urlLoadWebView);


after Webview call onPageFinished I call CookieManager.getInstance().getCookie(url); but it return value :




nd=del; nd=del; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
_im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
s_sq=%5B%5BB%5D%5D;
__bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
loading
https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
trd_cid=15457320755932775; _ga=GA1.2.992719753.1545732069;
_gid=GA1.2.1965405727.1546394143; _tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; _fbp=fb.1.1546411386099.1330627569; lni_session_id=kbjm3geqoaoa7qdavl3rn6f4a7; LNXUST=MY%3D1546423494;
s_combCk=1546423494-Repeat--undefined--undefined; s_cc=true;
mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425356;
check=true;
_mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=0; CORRECT=0; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
_im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
s_sq=%5B%5BB%5D%5D;
__bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
loading
https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
LNXUST=MY%3D1546423494; CORRECT=0; _gat=1; trd_cid=15457320755932775;
lni_session_id=om8d64de7ajefpc1ul4betnf91; _gat_UA-119265811-1=1;
_tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; s_combCk=1546423499-Repeat--undefined--undefined; s_cc=true;
mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425360;
check=true;
_mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=1; _ga=GA1.2.992719753.1545732069;
_gid=GA1.2.1965405727.1546394143; _fbp=fb.1.1546411386099.1330627569




You can see in cookie value have old and new cookie.
How I can fix it?










share|improve this question





























    0















    In Activity A I have webview login, after login I save CookieManager.getInstance().getCookie(url); in shared preference and then next to Activity B. In activity I have webview, now I want set cookie save in shared preference to webview in activity B. How I can do it?
    My string cookie sample:




    nd=del; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
    s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
    _im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
    s_sq=%5B%5BB%5D%5D;
    __bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
    loading
    https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
    trd_cid=15457320755932775; _ga=GA1.2.992719753.1545732069;
    _gid=GA1.2.1965405727.1546394143; _tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; _fbp=fb.1.1546411386099.1330627569; lni_session_id=kbjm3geqoaoa7qdavl3rn6f4a7; LNXUST=MY%3D1546423494;
    s_combCk=1546423494-Repeat--undefined--undefined; s_cc=true;
    mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425356;
    check=true;
    _mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=0; CORRECT=0




    I used this code:



     String cookies = SharedPrefs.getInstance().get(SharedPrefsKey.KEY_COOKIE_WEB_VIEW, String.class);
    String splitCookies = cookies.split(";");
    CookieManager cookieManager = CookieManager.getInstance();
    for (String cookie : splitCookies) {
    cookieManager.setCookie(urlLoadWebView, cookie);
    }
    mWebView.loadUrl(urlLoadWebView);


    after Webview call onPageFinished I call CookieManager.getInstance().getCookie(url); but it return value :




    nd=del; nd=del; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
    s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
    _im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
    s_sq=%5B%5BB%5D%5D;
    __bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
    loading
    https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
    trd_cid=15457320755932775; _ga=GA1.2.992719753.1545732069;
    _gid=GA1.2.1965405727.1546394143; _tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; _fbp=fb.1.1546411386099.1330627569; lni_session_id=kbjm3geqoaoa7qdavl3rn6f4a7; LNXUST=MY%3D1546423494;
    s_combCk=1546423494-Repeat--undefined--undefined; s_cc=true;
    mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425356;
    check=true;
    _mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=0; CORRECT=0; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
    s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
    _im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
    s_sq=%5B%5BB%5D%5D;
    __bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
    loading
    https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
    LNXUST=MY%3D1546423494; CORRECT=0; _gat=1; trd_cid=15457320755932775;
    lni_session_id=om8d64de7ajefpc1ul4betnf91; _gat_UA-119265811-1=1;
    _tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; s_combCk=1546423499-Repeat--undefined--undefined; s_cc=true;
    mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425360;
    check=true;
    _mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=1; _ga=GA1.2.992719753.1545732069;
    _gid=GA1.2.1965405727.1546394143; _fbp=fb.1.1546411386099.1330627569




    You can see in cookie value have old and new cookie.
    How I can fix it?










    share|improve this question



























      0












      0








      0








      In Activity A I have webview login, after login I save CookieManager.getInstance().getCookie(url); in shared preference and then next to Activity B. In activity I have webview, now I want set cookie save in shared preference to webview in activity B. How I can do it?
      My string cookie sample:




      nd=del; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
      s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
      _im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
      s_sq=%5B%5BB%5D%5D;
      __bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
      loading
      https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
      trd_cid=15457320755932775; _ga=GA1.2.992719753.1545732069;
      _gid=GA1.2.1965405727.1546394143; _tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; _fbp=fb.1.1546411386099.1330627569; lni_session_id=kbjm3geqoaoa7qdavl3rn6f4a7; LNXUST=MY%3D1546423494;
      s_combCk=1546423494-Repeat--undefined--undefined; s_cc=true;
      mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425356;
      check=true;
      _mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=0; CORRECT=0




      I used this code:



       String cookies = SharedPrefs.getInstance().get(SharedPrefsKey.KEY_COOKIE_WEB_VIEW, String.class);
      String splitCookies = cookies.split(";");
      CookieManager cookieManager = CookieManager.getInstance();
      for (String cookie : splitCookies) {
      cookieManager.setCookie(urlLoadWebView, cookie);
      }
      mWebView.loadUrl(urlLoadWebView);


      after Webview call onPageFinished I call CookieManager.getInstance().getCookie(url); but it return value :




      nd=del; nd=del; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
      s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
      _im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
      s_sq=%5B%5BB%5D%5D;
      __bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
      loading
      https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
      trd_cid=15457320755932775; _ga=GA1.2.992719753.1545732069;
      _gid=GA1.2.1965405727.1546394143; _tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; _fbp=fb.1.1546411386099.1330627569; lni_session_id=kbjm3geqoaoa7qdavl3rn6f4a7; LNXUST=MY%3D1546423494;
      s_combCk=1546423494-Repeat--undefined--undefined; s_cc=true;
      mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425356;
      check=true;
      _mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=0; CORRECT=0; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
      s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
      _im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
      s_sq=%5B%5BB%5D%5D;
      __bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
      loading
      https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
      LNXUST=MY%3D1546423494; CORRECT=0; _gat=1; trd_cid=15457320755932775;
      lni_session_id=om8d64de7ajefpc1ul4betnf91; _gat_UA-119265811-1=1;
      _tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; s_combCk=1546423499-Repeat--undefined--undefined; s_cc=true;
      mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425360;
      check=true;
      _mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=1; _ga=GA1.2.992719753.1545732069;
      _gid=GA1.2.1965405727.1546394143; _fbp=fb.1.1546411386099.1330627569




      You can see in cookie value have old and new cookie.
      How I can fix it?










      share|improve this question
















      In Activity A I have webview login, after login I save CookieManager.getInstance().getCookie(url); in shared preference and then next to Activity B. In activity I have webview, now I want set cookie save in shared preference to webview in activity B. How I can do it?
      My string cookie sample:




      nd=del; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
      s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
      _im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
      s_sq=%5B%5BB%5D%5D;
      __bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
      loading
      https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
      trd_cid=15457320755932775; _ga=GA1.2.992719753.1545732069;
      _gid=GA1.2.1965405727.1546394143; _tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; _fbp=fb.1.1546411386099.1330627569; lni_session_id=kbjm3geqoaoa7qdavl3rn6f4a7; LNXUST=MY%3D1546423494;
      s_combCk=1546423494-Repeat--undefined--undefined; s_cc=true;
      mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425356;
      check=true;
      _mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=0; CORRECT=0




      I used this code:



       String cookies = SharedPrefs.getInstance().get(SharedPrefsKey.KEY_COOKIE_WEB_VIEW, String.class);
      String splitCookies = cookies.split(";");
      CookieManager cookieManager = CookieManager.getInstance();
      for (String cookie : splitCookies) {
      cookieManager.setCookie(urlLoadWebView, cookie);
      }
      mWebView.loadUrl(urlLoadWebView);


      after Webview call onPageFinished I call CookieManager.getInstance().getCookie(url); but it return value :




      nd=del; nd=del; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
      s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
      _im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
      s_sq=%5B%5BB%5D%5D;
      __bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
      loading
      https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
      trd_cid=15457320755932775; _ga=GA1.2.992719753.1545732069;
      _gid=GA1.2.1965405727.1546394143; _tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; _fbp=fb.1.1546411386099.1330627569; lni_session_id=kbjm3geqoaoa7qdavl3rn6f4a7; LNXUST=MY%3D1546423494;
      s_combCk=1546423494-Repeat--undefined--undefined; s_cc=true;
      mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425356;
      check=true;
      _mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=0; CORRECT=0; AMCVS_50B74CAB564469287F000101%40AdobeOrg=1;
      s_vid=18c9b4564d36c4acacdfb1e47a9b1b63ec60657dc67; sentFA=1;
      _im_au=1.1.1481025714.1545732070; PDC=; AMCV_50B74CAB564469287F000101%40AdobeOrg=-1891778711%7CMCIDTS%7C17899%7CMCMID%7C14386804367756668021968412176826840178%7CMCAID%7CNONE%7CMCOPTOUT-1546427061s%7CNONE%7CMCAAMLH-1546998940%7C11%7CMCAAMB-1547024661%7Cj8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI%7CMCSYNCSOP%7C411-17906%7CvVersion%7C2.4.0;
      s_sq=%5B%5BB%5D%5D;
      __bterr_unuHUR0,pk2GMQX={"site":"unuHUR0,pk2GMQX","referrer":"https://stuat.lifenet.local/app/mypage","errors":[{"type":"script","message":"Problem
      loading
      https://pv.amanad.adtdp.com/lEgOTIhNwpmR5R9lVoWnoQ/pv.js?pg=85-AoexYBmw","tagId":6632933,"timestamp":1546422415642}]};
      LNXUST=MY%3D1546423494; CORRECT=0; _gat=1; trd_cid=15457320755932775;
      lni_session_id=om8d64de7ajefpc1ul4betnf91; _gat_UA-119265811-1=1;
      _tdim=7439db2b-2837-4496-ad6c-fcf71c17407e; s_combCk=1546423499-Repeat--undefined--undefined; s_cc=true;
      mbox=PC#35b9fac8d1e34a848f364784bb44f0ca.22_38#1608976867|session#785686a6c4c74eb8831943eed612f2f5#1546425360;
      check=true;
      _mkto_trk=id:049-SBP-453&token:_mch-lifenet.local-1545732065850-46493; ACCESS=1; _ga=GA1.2.992719753.1545732069;
      _gid=GA1.2.1965405727.1546394143; _fbp=fb.1.1546411386099.1330627569




      You can see in cookie value have old and new cookie.
      How I can fix it?







      android cookies webview






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 2 at 11:49









      Fantômas

      32.8k156390




      32.8k156390










      asked Jan 2 at 10:15









      Hoa.TranHoa.Tran

      232212




      232212
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54004507%2fhow-to-set-cookie-login-for-webview%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54004507%2fhow-to-set-cookie-login-for-webview%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas