Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session management broken in Android- Session cookie handling failed in latest 3.3.1 version #490

Open
Mani-VD opened this issue Dec 22, 2022 · 4 comments

Comments

@Mani-VD
Copy link

Mani-VD commented Dec 22, 2022

Session management broken
I am trying to connect odoo web api using this plugin. After login, it says session expired, which means session management is broken.

System info

  • affected HTTP plugin version: 3.**
  • affected platform(s) and version(s):Android
  • affected device(s):Common android devices
  • Capacitor 4.**
  • cordova platform version(s):7.0.0

Are you using ionic-native-wrapper?

  • ionic-native-wrapper version: 6.2.0 - did you check

Minimum viable code to reproduce
http.post(**

@silviogutierrez
Copy link

@Mani-VD : does not seem like server-set cookies work at all with Capacitor 4 on Android.

On 4.0 - 4.2, setting stuff is buggy.

On 4.3+, duplicate headers are often sent and setting stuff is still buggy.

This plugin is built for Cordova but I imagine a lot of us use it with Capacitor. After all, it has far surpassed Cordova in usage.

I'm working on a reproduction that hopefully helps fix this. It'll have Cordova and Capacitor side by side, so that @silkimen has an easier time reproducing if he feels inclined to add support for Capacitor.

@Mani-VD
Copy link
Author

Mani-VD commented Dec 29, 2022

@silviogutierrez Any alternative solutions available for now?

@silviogutierrez
Copy link

@Mani-VD : I've had luck using Cordova 4.2, but maybe your problem is different.

So 4.3+ is broken.

@silviogutierrez
Copy link

@Mani-VD : maybe this is related to your issue. #492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants