Skip to content
Browse files
  • Loading branch information
shazron committed Apr 22, 2015
1 parent 2dc4bda commit 897c1703e548656c2eec37b7ddb114b1de87c922
Showing 1 changed file with 7 additions and 0 deletions.
@@ -0,0 +1,7 @@

## Do cookies work in Cordova apps?

There are two ways in which you may want to use cookies. The first is within XHR (Ajax) requests to remote resources. Unless you specifically remove them, your Ajax library will automatically use cookies in subsequent calls to remote APIs and resources you request. So given that some API returns a cookie required for future calls, you can assume it will be automatically sent when your app hits it again.

The other way your app may desire to use cookies is locally - ie within the app itself. This does not make sense within a Cordova app as it isn't running on a proper web server itself. If your intent is simply to store data for the app then you should make use the various [existing methods]( to store data locally.

0 comments on commit 897c170

Please sign in to comment.