question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] [iOS] clearCookies does not work

See original GitHub issue

Describe the bug When a request response has the header set-cookie the cookie is correctly set and then retrieved with getCookieString(). When clearCookies() is called the cookie is no more available with getCookieString() but persists in next http calls. Behavior is correct on Android.

System info

  • affected HTTP plugin version: 2.1.1
  • affected platform(s) and version(s): iOS 12.4
  • affected device(s): Simulator and physical device
  • cordova version: 5.2.5
  • cordova platform version(s): ios 5.0.1, android 8.0.0

Are you using ionic-native-wrapper? Yes.

  • ionic-native-wrapper version: 5.12.0
  • did you check ionic-native issue tracker for your problem? Yes, no one reported the problem.

Minimum viable code to reproduce

I wrote a basic app with 4 buttons and a mini webserver which basically set a cookie (with a GET to /set-cookie path) and print the request cookie headers (with a GET to /).

For reproducing, add the iOS platform then build and run on device. Press the buttons in sequence from top to bottom, the last result should be empty. (I also used this app for testing the browser behavior, and the cookie is not even set – maybe is convenient to open another issue for describing this inconsistent behavior between platforms)

Screenshots None

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
silkimencommented, Jun 3, 2020

Just released now 🙂

2reactions
arjelcommented, Oct 4, 2019

Same here … @gabrielepmattia, @FredCote have you found a solution? plugin version: 2.0.9 OS version: iPadOS 13.1

I had to rollback to v1.9.0. Works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Safari doesnt clear cookies - Apple Community
Safari doesnt clear cookies. I have the iPhone 3GS and I updated the phone software through iTunes a couple if weeks ... Anybody...
Read more >
Clear cookies for WKWebView? - Stack Overflow
The problem is, if the user wants to change their login, then it becomes impossible, because even if the user logs out and...
Read more >
How to clear or block cookies on an iPhone to help it run more ...
1. Open the Settings app. · 2. Scroll down and tap "Safari." · 3. Tap "Advanced" at the bottom of the page. ·...
Read more >
Clear cache & cookies - iPhone & iPad - Google Account Help
When you use a browser, like Chrome, it saves some information from websites in its cache and cookies. Clearing them fixes certain problems,...
Read more >
How To Clear Cookies On iPhone - YouTube
Your purchase helps support my work in bringing you real information about my experience, and does not cost anything additional to you.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found