Giter Site home page Giter Site logo

cordova-plugin-cookie-persistence's Introduction

Cordova Plugin Cookie Persistence

Cordova Plugin that injects saved cookies on app start, and saves cookies on pause.

Install

cordova plugin add https://github.com/DriveTimeInc/cordova-plugin-cookie-persistence

Description

For Android and iOS webviews, cookies will not be persisted across multiple app open/closes. This plugin will save cookies on app exit and restore those cookies on app re-start.

The plugin will push the cookies into the webview before the first http request is made so external site requests will include the cookies in the first request.

Details

Android

The cookies will be stored in a private .txt file.

iOS

It is possible that this plugin is not required for cookies on iOS. It appears from very basic testing that when an app is killed the cookies are persisted. It is unknown how long this is for.

Cookies are saved to a text file when an app is paused.

To get the cookies out, you can call window.getCookies().

NOTE This may not be the expected workflows for some use cases though. See PR #4 for more details.

cordova-plugin-cookie-persistence's People

Contributors

gregberns avatar mattmcdonald39 avatar

Watchers

Jussi Rajala avatar Jussi Talaskivi avatar James Cloos avatar Kirsi Rinnesalo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.